1993-06-07 19:00:55 +08:00
|
|
|
# Makefile for Autoconf.
|
1994-04-30 09:47:37 +08:00
|
|
|
# Copyright (C) 1992, 1993, 1994 Free Software Foundation, Inc.
|
1993-06-07 19:00:55 +08:00
|
|
|
|
|
|
|
# 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
|
1993-07-20 10:07:49 +08:00
|
|
|
TEXI2DVI = texi2dvi
|
1993-10-09 23:08:50 +08:00
|
|
|
M4 = @M4@
|
1994-04-30 09:56:30 +08:00
|
|
|
|
|
|
|
PROGS = autoconf autoheader autoreconf @PROGS@
|
1994-04-30 09:47:37 +08:00
|
|
|
# Path of the perl interpreter.
|
|
|
|
PERL = @PERL@
|
1993-06-07 19:00:55 +08:00
|
|
|
|
|
|
|
prefix = /usr/local
|
|
|
|
exec_prefix = $(prefix)
|
|
|
|
|
1993-07-09 09:22:48 +08:00
|
|
|
# Directory in which to install scripts.
|
1993-06-07 19:00:55 +08:00
|
|
|
bindir = $(exec_prefix)/bin
|
|
|
|
|
1993-07-09 09:22:48 +08:00
|
|
|
# Directory in which to install library files.
|
1993-06-07 19:00:55 +08:00
|
|
|
datadir = $(prefix)/lib
|
1994-03-24 14:20:44 +08:00
|
|
|
acdatadir = $(datadir)/autoconf
|
1993-06-07 19:00:55 +08:00
|
|
|
|
|
|
|
# Directory in which to install documentation info files.
|
|
|
|
infodir = $(prefix)/info
|
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
1994-05-03 07:47:13 +08:00
|
|
|
# Files that can be generated, but should be up to date for a distribution.
|
|
|
|
DISTDEP = info Makefile
|
1994-04-30 09:47:37 +08:00
|
|
|
# Files to distribute.
|
1994-05-03 07:47:13 +08:00
|
|
|
DISTFILES = COPYING ChangeLog INSTALL Makefile.in NEWS README \
|
|
|
|
acconfig.h acfunctions acgeneral.m4 acheaders acidentifiers \
|
|
|
|
acmakevars acprograms acspecific.m4 autoconf.info* \
|
|
|
|
autoconf.sh autoconf.texi autoheader.sh autoreconf.sh autoscan.pl \
|
1994-04-30 09:47:37 +08:00
|
|
|
config.guess config.sub configure configure.in \
|
1994-05-03 07:47:13 +08:00
|
|
|
install.sh mkinstalldirs texinfo.tex \
|
|
|
|
standards.texi make-stds.texi standards.info*
|
1993-06-07 19:00:55 +08:00
|
|
|
|
1994-03-24 14:20:44 +08:00
|
|
|
editsh = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''M4''@,$(M4),g'
|
1994-04-30 09:47:37 +08:00
|
|
|
editpl = sed -e 's,@''datadir''@,$(acdatadir),g' -e 's,@''PERL''@,$(PERL),g'
|
1993-06-07 19:00:55 +08:00
|
|
|
|
1994-04-30 09:56:30 +08:00
|
|
|
all: ${PROGS}
|
1993-07-09 09:22:48 +08:00
|
|
|
|
1993-06-07 19:00:55 +08:00
|
|
|
autoconf: autoconf.sh
|
1994-04-01 00:34:43 +08:00
|
|
|
rm -f $@ $@.tmp
|
|
|
|
$(editsh) $(srcdir)/autoconf.sh > $@.tmp && mv $@.tmp $@ && chmod +x $@
|
1993-07-09 09:22:48 +08:00
|
|
|
|
1993-06-07 19:00:55 +08:00
|
|
|
autoheader: autoheader.sh
|
1994-04-01 00:34:43 +08:00
|
|
|
rm -f $@ $@.tmp
|
|
|
|
$(editsh) $(srcdir)/autoheader.sh > $@.tmp && mv $@.tmp $@ && chmod +x $@
|
1993-06-07 19:00:55 +08:00
|
|
|
|
1994-04-30 09:47:37 +08:00
|
|
|
autoreconf: autoreconf.sh
|
|
|
|
rm -f $@ $@.tmp
|
|
|
|
$(editsh) $(srcdir)/autoreconf.sh > $@.tmp && mv $@.tmp $@ && chmod +x $@
|
1993-07-20 10:07:49 +08:00
|
|
|
|
1994-04-30 09:47:37 +08:00
|
|
|
autoscan: autoscan.pl
|
|
|
|
rm -f $@ $@.tmp
|
|
|
|
$(editpl) $(srcdir)/autoscan.pl > $@.tmp && mv $@.tmp $@ && chmod +x $@
|
1993-07-09 09:22:48 +08:00
|
|
|
|
1994-05-03 07:47:13 +08:00
|
|
|
info: autoconf.info @standards_info@
|
1993-06-07 19:00:55 +08:00
|
|
|
|
1994-04-30 09:47:37 +08:00
|
|
|
autoconf.info: autoconf.texi
|
|
|
|
$(MAKEINFO) -I$(srcdir) $(srcdir)/autoconf.texi --output=$@
|
1993-07-20 10:07:49 +08:00
|
|
|
|
1994-05-03 07:47:13 +08:00
|
|
|
standards.info: standards.texi make-stds.texi
|
|
|
|
$(MAKEINFO) -I$(srcdir) $(srcdir)/standards.texi --output=$@
|
|
|
|
|
|
|
|
dvi: autoconf.dvi @standards_dvi@
|
1993-07-20 10:07:49 +08:00
|
|
|
|
1994-04-30 09:47:37 +08:00
|
|
|
autoconf.dvi: autoconf.texi
|
1994-05-03 07:47:13 +08:00
|
|
|
$(TEXI2DVI) $(srcdir)/autoconf.texi
|
|
|
|
|
|
|
|
standards.dvi: standards.texi make-stds.texi
|
|
|
|
$(TEXI2DVI) $(srcdir)/standards.texi
|
1993-07-20 10:07:49 +08:00
|
|
|
|
1993-06-07 19:00:55 +08:00
|
|
|
check:
|
1994-04-30 09:47:37 +08:00
|
|
|
installcheck:
|
1993-06-07 19:00:55 +08:00
|
|
|
|
1994-05-06 12:04:40 +08:00
|
|
|
installdirs:
|
1994-03-24 14:20:44 +08:00
|
|
|
$(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(acdatadir)
|
1993-07-09 09:22:48 +08:00
|
|
|
|
1993-07-28 12:33:04 +08:00
|
|
|
# References to install-info have been removed until it's released.
|
1994-05-06 12:04:40 +08:00
|
|
|
install: all acgeneral.m4 acspecific.m4 acconfig.h installdirs install-info
|
1993-06-07 19:00:55 +08:00
|
|
|
$(INSTALL_PROGRAM) autoconf $(bindir)/autoconf
|
|
|
|
$(INSTALL_PROGRAM) autoheader $(bindir)/autoheader
|
1994-04-30 09:47:37 +08:00
|
|
|
$(INSTALL_PROGRAM) autoreconf $(bindir)/autoreconf
|
1994-03-24 14:20:44 +08:00
|
|
|
$(INSTALL_DATA) $(srcdir)/acgeneral.m4 $(acdatadir)/acgeneral.m4
|
|
|
|
$(INSTALL_DATA) $(srcdir)/acspecific.m4 $(acdatadir)/acspecific.m4
|
|
|
|
$(INSTALL_DATA) $(srcdir)/acconfig.h $(acdatadir)/acconfig.h
|
1994-04-30 09:47:37 +08:00
|
|
|
-if test -f autoscan; then \
|
|
|
|
$(INSTALL_PROGRAM) autoscan $(bindir)/autoscan; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/acfunctions $(acdatadir)/acfunctions; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/acheaders $(acdatadir)/acheaders; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/acidentifiers $(acdatadir)/acidentifiers; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/acprograms $(acdatadir)/acprograms; \
|
|
|
|
$(INSTALL_DATA) $(srcdir)/acmakevars $(acdatadir)/acmakevars; \
|
|
|
|
else :; fi
|
|
|
|
|
1994-05-05 07:41:27 +08:00
|
|
|
install-info: info installdirs
|
1994-05-03 07:47:13 +08:00
|
|
|
-test -f autoconf.info || cd $(srcdir); \
|
|
|
|
for i in autoconf.info*; do \
|
|
|
|
$(INSTALL_DATA) $$i $(infodir)/$$i; \
|
|
|
|
done
|
|
|
|
-test -f standards.info || cd $(srcdir); \
|
|
|
|
for i in standards.info*; do \
|
1994-04-30 09:47:37 +08:00
|
|
|
$(INSTALL_DATA) $$i $(infodir)/$$i; \
|
|
|
|
done
|
1993-06-07 19:00:55 +08:00
|
|
|
|
|
|
|
uninstall:
|
1994-04-30 09:47:37 +08:00
|
|
|
rm -f $(bindir)/autoconf $(bindir)/autoheader $(bindir)/autoscan
|
|
|
|
rm -f $(bindir)/autoreconf
|
|
|
|
rm -fr $(acdatadir)
|
|
|
|
cd $(infodir); rm -f autoconf.info*
|
1994-05-03 07:47:13 +08:00
|
|
|
if test -f standards.info || test -f $(srcdir)/standards.info; \
|
|
|
|
then cd $(infodir); rm -f standards.info*; fi
|
1993-06-07 19:00:55 +08:00
|
|
|
|
1993-07-09 09:22:48 +08:00
|
|
|
configure: configure.in acgeneral.m4 acspecific.m4
|
|
|
|
cd $(srcdir); \
|
1994-04-01 00:34:43 +08:00
|
|
|
rm -f $@ $@.tmp; \
|
|
|
|
$(M4) acgeneral.m4 acspecific.m4 configure.in > $@.tmp && \
|
|
|
|
mv $@.tmp $@ && \
|
|
|
|
chmod +x $@
|
1994-04-05 09:29:40 +08:00
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
./config.status
|
|
|
|
config.status: configure
|
|
|
|
./config.status --recheck
|
1993-07-09 09:22:48 +08:00
|
|
|
|
1993-06-07 19:00:55 +08:00
|
|
|
clean:
|
1994-04-30 09:47:37 +08:00
|
|
|
rm -f autoconf autoheader autoscan autoreconf *.tmp
|
1993-06-07 19:00:55 +08:00
|
|
|
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
|
1993-10-16 03:44:37 +08:00
|
|
|
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs *.ma *.mas
|
1993-06-07 19:00:55 +08:00
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean
|
1994-05-05 19:51:35 +08:00
|
|
|
rm -f Makefile config.status config.cache
|
1993-06-07 19:00:55 +08:00
|
|
|
|
|
|
|
realclean: distclean
|
|
|
|
rm -f TAGS *.info*
|
|
|
|
|
|
|
|
TAGS:
|
1993-07-09 09:22:48 +08:00
|
|
|
etags ${srcdir}/*.m4 ${srcdir}/*.sh ${srcdir}/[a-z]*.in ${srcdir}/*.texi
|
1993-06-07 19:00:55 +08:00
|
|
|
|
1994-05-05 23:53:37 +08:00
|
|
|
# Don't depend on DISTFILES because there's no rule for "standards.info*".
|
|
|
|
dist: $(DISTDEP)
|
1994-04-30 09:47:37 +08:00
|
|
|
distname=`sed -e '/define(AC_ACVERSION,/!d' \
|
|
|
|
-e 's/[^0-9.]*\([0-9.]*\).*/autoconf-\1/' -e q acgeneral.m4`; \
|
|
|
|
rm -fr $$distname; \
|
1994-05-03 07:47:13 +08:00
|
|
|
mkdir $$distname; \
|
|
|
|
for file in $(DISTFILES); do \
|
1994-04-30 09:47:37 +08:00
|
|
|
ln $$file $$distname \
|
|
|
|
|| { echo copying $$file instead; cp -p $$file $$distname;}; \
|
|
|
|
done; \
|
1994-05-05 23:57:20 +08:00
|
|
|
chmod -R a+rX $$distname; \
|
1994-05-03 07:47:13 +08:00
|
|
|
tar -chz -f $$distname.tar.gz $$distname; \
|
1994-04-30 09:47:37 +08:00
|
|
|
rm -fr $$distname
|