home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Geek Gadgets 1
/
ADE-1.bin
/
ade-dist
/
autoconf-2.10-src.tgz
/
tar.out
/
fsf
/
autoconf
/
Makefile.in
< prev
next >
Wrap
Makefile
|
1996-09-24
|
9KB
|
285 lines
# Makefile for Autoconf.
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2, or (at your option)
# any later version.
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
#### Start of system configuration section. ####
srcdir = @srcdir@
VPATH = @srcdir@
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
INSTALL_DATA = @INSTALL_DATA@
MAKEINFO = makeinfo
TEXI2DVI = texi2dvi
DVIPS = dvips
M4 = @M4@
AWK = @AWK@
PERL = @PERL@
# Programs that are ALWAYS installed (and are created in the build dir).
ASCRIPTS = autoconf autoheader autoreconf autoupdate ifnames
# All programs, including those only installed if you have perl.
SCRIPTS = $(ASCRIPTS) @SCRIPTS@
transform=@program_transform_name@
prefix = @prefix@
exec_prefix = @exec_prefix@
# Directory in which to install scripts.
bindir = @bindir@
# Directory in which to install library files.
datadir = @datadir@
acdatadir = $(datadir)/autoconf
# Directory in which to install documentation info files.
infodir = @infodir@
# Directory in which to install documentation guide files.
guidedir = @guidedir@
# Directory in which to install documentation dvi files.
dvidir = $(prefix)/dvi
# Directory in which to install documentation postscript files.
psdir = $(prefix)/ps
#### End of system configuration section. ####
SHELL = /bin/sh
SUBDIRS = testsuite
M4FILES = autoconf.m4 acgeneral.m4 acoldnames.m4 acspecific.m4 autoheader.m4
# Files that can be generated, but should be up to date for a distribution.
DISTDEP = info guide Makefile
# Files to distribute.
DISTFILES = COPYING ChangeLog ChangeLog.1 INSTALL \
Makefile.in NEWS README TODO $(M4FILES) \
acconfig.h acfunctions acheaders acidentifiers \
acmakevars acprograms autoconf.info* autoconf.guide\
autoconf.sh autoconf.texi install.texi \
autoheader.sh autoscan.pl autoreconf.sh autoupdate.sh ifnames.sh \
config.guess config.sub configure configure.in \
install-sh mkinstalldirs texinfo.tex \
testsuite/Makefile.in testsuite/config/*.exp \
testsuite/lib/*.exp testsuite/autoconf.[gs]/*.exp \
standards.texi make-stds.texi standards.info* standards.guide \
autoconf.dvi autoconf.ps standards.dvi standards.ps
editsh = sed -e 's,@''datadir''@,$(acdatadir),g' -e \
's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g'
editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g'
all: ${SCRIPTS} info guide dvi ps
.SUFFIXES:
.SUFFIXES: .sh .pl
.sh:
rm -f $@ $@.tmp
$(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
.pl:
rm -f $@ $@.tmp
$(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
info: autoconf.info @standards_info@ INSTALL
# Use --no-split to avoid creating filenames > 14 chars.
autoconf.info: autoconf.texi install.texi
$(MAKEINFO) -I$(srcdir) $(srcdir)/autoconf.texi --no-split --output=$@
INSTALL: install.texi
$(MAKEINFO) -I$(srcdir) $(srcdir)/install.texi --output=$@ \
--no-headers --no-validate
standards.info: standards.texi make-stds.texi
$(MAKEINFO) -I$(srcdir) $(srcdir)/standards.texi --no-split --output=$@
dvi: autoconf.dvi @standards_dvi@
autoconf.dvi: autoconf.texi
$(TEXI2DVI) $(srcdir)/autoconf.texi
standards.dvi: standards.texi make-stds.texi
$(TEXI2DVI) $(srcdir)/standards.texi
guide: autoconf.guide standards.guide
autoconf.guide: autoconf.texi install.texi
$(MAKEINFO) -I$(srcdir) $(srcdir)/autoconf.texi --no-split --output=$@ --amiga
standards.guide: standards.texi make-stds.texi
$(MAKEINFO) -I$(srcdir) $(srcdir)/standards.texi --no-split --output=$@ --amiga
ps: autoconf.ps standards.ps
autoconf.ps: autoconf.dvi
$(DVIPS) -o $@ $?
standards.ps: standards.dvi
$(DVIPS) -o $@ $?
check: all
rootme=`pwd`; srcrootme=`cd $(srcdir); pwd`; \
test -r install-sh || cp $(srcdir)/install-sh .; \
cd testsuite && ${MAKE} $@ AUTOCONF=$$rootme/autoconf \
AUTOCONFFLAGS="-m $$srcrootme"
installcheck: all install
cd testsuite && ${MAKE} AUTOCONF=${bindir}/autoconf $@
installdirs:
$(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(guidedir) $(dvidir) $(psdir) $(acdatadir)
install: all $(M4FILES) acconfig.h installdirs install-info install-guide install-dvi install-ps
@case `$(M4) --help < /dev/null 2>&1` in \
*reload-state*) echo installing frozen m4 files; \
$(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
$(M4) -F $(acdatadir)/autoheader.m4f -I${srcdir} ${srcdir}/autoheader.m4 ;; \
*traditional*) ;; \
*) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \
esac
for p in $(ASCRIPTS); do \
$(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
done
for i in $(M4FILES) acconfig.h; do \
$(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \
done
-if test -f autoscan; then \
$(INSTALL_PROGRAM) autoscan $(bindir)/`echo autoscan|sed '$(transform)'`; \
for i in acfunctions acheaders acidentifiers acprograms \
acmakevars; do \
$(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \
done; \
else :; fi
# Don't cd, to avoid breaking install-sh references.
install-info: info installdirs
if test -f autoconf.info; then \
for i in *.info*; do \
$(INSTALL_DATA) $$i $(infodir)/$$i; \
done; \
else \
for i in $(srcdir)/*.info*; do \
$(INSTALL_DATA) $$i $(infodir)/`echo $$i | sed 's|^$(srcdir)/||'`; \
done; \
fi
install-guide: guide installdirs
if test -f autoconf.guide; then \
for i in *.guide; do \
$(INSTALL_DATA) $$i $(guidedir)/$$i; \
done; \
else \
for i in $(srcdir)/*.guide; do \
$(INSTALL_DATA) $$i $(guidedir)/`echo $$i | sed 's|^$(srcdir)/||'`; \
done; \
fi
install-dvi: dvi installdirs
if test -f autoconf.dvi; then \
for i in *.dvi; do \
$(INSTALL_DATA) $$i $(dvidir)/$$i; \
done; \
else \
for i in $(srcdir)/*.dvi; do \
$(INSTALL_DATA) $$i $(dvidir)/`echo $$i | sed 's|^$(srcdir)/||'`; \
done; \
fi
install-ps: ps installdirs
if test -f autoconf.ps; then \
for i in *.ps; do \
$(INSTALL_DATA) $$i $(psdir)/$$i; \
done; \
else \
for i in $(srcdir)/*.ps; do \
$(INSTALL_DATA) $$i $(psdir)/`echo $$i | sed 's|^$(srcdir)/||'`; \
done; \
fi
uninstall:
for p in $(SCRIPTS); do \
rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
done
rm -fr $(acdatadir)
cd $(infodir) && rm -f autoconf.info*
if test -f standards.info || test -f $(srcdir)/standards.info; \
then cd $(infodir) && rm -f standards.info*; fi
cd $(guidedir) && rm -f autoconf.guide
if test -f standards.guide || test -f $(srcdir)/standards.guide; \
then cd $(guidedir) && rm -f standards.guide; fi
cd $(dvidir) && rm -f autoconf.dvi
if test -f standards.dvi || test -f $(srcdir)/standards.dvi; \
then cd $(psdir) && rm -f standards.ps; fi
cd $(psdir) && rm -f autoconf.ps
if test -f standards.ps || test -f $(srcdir)/standards.ps; \
then cd $(psdir) && rm -f standards.ps; fi
${srcdir}/configure: configure.in $(M4FILES)
cd $(srcdir) && \
rm -f configure configure.tmp && \
$(M4) autoconf.m4 configure.in > configure.tmp && \
chmod +x configure.tmp && mv configure.tmp configure
Makefile: Makefile.in config.status
./config.status
config.status: configure
./config.status --recheck
maintainer-clean::
@echo "This command is intended for maintainers to use;"
@echo "rebuilding the deleted files requires makeinfo."
rm -f TAGS *.info* INSTALL *.guide *.dvi *.ps
clean mostlyclean distclean maintainer-clean::
for dir in $(SUBDIRS); do \
echo making $@ in $$dir ; \
(cd $$dir && $(MAKE) $@) ; \
done
clean mostlyclean distclean maintainer-clean::
rm -f $(SCRIPTS) *.tmp
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
rm -f *.ev *.evs *.ov *.ovs *.cv *.cvs *.ma *.mas
distclean maintainer-clean::
rm -f Makefile config.status config.cache config.log
TAGS:
etags ${srcdir}/*.m4 ${srcdir}/*.sh ${srcdir}/[a-z]*.in ${srcdir}/*.texi
# Don't depend on DISTFILES because there's no rule for "standards.info*".
dist: $(DISTDEP)
distname=`sed -e '/define(AC_ACVERSION,/!d' \
-e 's/[^0-9.]*\([0-9.]*\).*/autoconf-\1/' -e q acgeneral.m4`; \
rm -fr $$distname; \
mkdir $$distname $$distname/testsuite $$distname/testsuite/config \
$$distname/testsuite/lib $$distname/testsuite/autoconf.g \
$$distname/testsuite/autoconf.s; \
for file in $(DISTFILES); do \
ln $$file $$distname/$$file \
|| { echo copying $$file instead; cp -p $$file $$distname/$$file;}; \
done; \
chmod -R a+rX $$distname; \
tar -chz -f $$distname.tar.gz $$distname; \
rm -fr $$distname