1993-06-07 19:00:55 +08:00
|
|
|
# Makefile for Autoconf.
|
|
|
|
# Copyright (C) 1992, 1993 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
|
1993-07-20 10:07:49 +08:00
|
|
|
TEXI2DVI = texi2dvi
|
1993-10-09 23:08:50 +08:00
|
|
|
M4 = @M4@
|
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
|
|
|
|
|
|
|
|
# Directory in which to install documentation info files.
|
|
|
|
infodir = $(prefix)/info
|
|
|
|
|
|
|
|
#### End of system configuration section. ####
|
|
|
|
|
|
|
|
SHELL = /bin/sh
|
|
|
|
|
|
|
|
DISTFILES = README Makefile.in INSTALL NEWS COPYING ChangeLog \
|
|
|
|
autoconf.texi autoconf.info* standards.texi make-stds.texi standards.info* \
|
|
|
|
texinfo.tex acconfig.h autoconf.sh acgeneral.m4 acspecific.m4 \
|
1993-07-09 09:22:48 +08:00
|
|
|
configure configure.in autoheader.sh mkinstalldirs
|
1993-06-07 19:00:55 +08:00
|
|
|
|
|
|
|
editsh = sed -e 's,@datadir@,$(datadir),g' -e 's,@M4@,$(M4),g'
|
|
|
|
|
1993-07-09 09:22:48 +08:00
|
|
|
all: autoconf autoheader autoconf.info standards.info
|
|
|
|
|
1993-06-07 19:00:55 +08:00
|
|
|
autoconf: autoconf.sh
|
|
|
|
rm -f $@
|
|
|
|
$(editsh) $(srcdir)/autoconf.sh > $@ && chmod +x $@
|
1993-07-09 09:22:48 +08:00
|
|
|
|
1993-06-07 19:00:55 +08:00
|
|
|
autoheader: autoheader.sh
|
|
|
|
rm -f $@
|
|
|
|
$(editsh) $(srcdir)/autoheader.sh > $@ && chmod +x $@
|
|
|
|
|
1993-07-20 10:07:49 +08:00
|
|
|
info: autoconf.info standards.info
|
|
|
|
|
1993-06-07 19:00:55 +08:00
|
|
|
autoconf.info: autoconf.texi
|
|
|
|
$(MAKEINFO) -I$(srcdir) $(srcdir)/autoconf.texi --no-split --output=$@
|
1993-07-09 09:22:48 +08:00
|
|
|
|
1993-06-07 19:00:55 +08:00
|
|
|
standards.info: standards.texi make-stds.texi
|
|
|
|
$(MAKEINFO) -I$(srcdir) $(srcdir)/standards.texi --no-split --output=$@
|
|
|
|
|
1993-07-20 10:07:49 +08:00
|
|
|
dvi: autoconf.dvi standards.dvi
|
|
|
|
|
|
|
|
autoconf.dvi: autoconf.texi
|
|
|
|
$(TEXI2DVI) $(srcdir)/autoconf.texi
|
|
|
|
|
|
|
|
standards.dvi: standards.texi make-stds.texi
|
|
|
|
$(TEXI2DVI) $(srcdir)/standards.texi
|
|
|
|
|
1993-06-07 19:00:55 +08:00
|
|
|
check:
|
|
|
|
|
1993-07-09 09:22:48 +08:00
|
|
|
installdirs:
|
|
|
|
$(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(datadir)
|
|
|
|
|
1993-07-28 12:33:04 +08:00
|
|
|
# References to install-info have been removed until it's released.
|
1993-07-09 09:22:48 +08:00
|
|
|
install: all acgeneral.m4 acspecific.m4 acconfig.h installdirs
|
1993-06-07 19:00:55 +08:00
|
|
|
$(INSTALL_PROGRAM) autoconf $(bindir)/autoconf
|
|
|
|
$(INSTALL_PROGRAM) autoheader $(bindir)/autoheader
|
|
|
|
$(INSTALL_DATA) $(srcdir)/acgeneral.m4 $(datadir)/acgeneral.m4
|
|
|
|
$(INSTALL_DATA) $(srcdir)/acspecific.m4 $(datadir)/acspecific.m4
|
|
|
|
$(INSTALL_DATA) $(srcdir)/acconfig.h $(datadir)/acconfig.h
|
|
|
|
test ! -r $(srcdir)/aclocal.m4 || $(INSTALL_DATA) $(srcdir)/aclocal.m4 $(datadir)/aclocal.m4
|
1993-07-09 09:22:48 +08:00
|
|
|
-if test -f autoconf.info; then d=.; else d=$(srcdir); fi; \
|
1993-07-28 12:33:04 +08:00
|
|
|
$(INSTALL_DATA) $$d/autoconf.info $(infodir)/autoconf.info
|
1993-07-09 09:22:48 +08:00
|
|
|
-if test -f standards.info; then d=.; else d=$(srcdir); fi; \
|
1993-07-28 12:33:04 +08:00
|
|
|
$(INSTALL_DATA) $$d/standards.info $(infodir)/standards.info
|
1993-06-07 19:00:55 +08:00
|
|
|
|
|
|
|
uninstall:
|
|
|
|
rm -f $(bindir)/autoconf $(bindir)/autoheader
|
|
|
|
cd $(datadir); rm -f acgeneral.m4 acspecific.m4 aclocal.m4 acconfig.h
|
|
|
|
-rmdir $(datadir)
|
|
|
|
cd $(infodir); rm -f autoconf.info standards.info
|
|
|
|
|
1993-07-09 09:22:48 +08:00
|
|
|
Makefile: Makefile.in config.status
|
|
|
|
$(SHELL) config.status
|
|
|
|
config.status: configure
|
1993-07-28 12:33:04 +08:00
|
|
|
$(SHELL) config.status --recheck
|
1993-07-09 09:22:48 +08:00
|
|
|
configure: configure.in acgeneral.m4 acspecific.m4
|
|
|
|
cd $(srcdir); \
|
|
|
|
$(M4) acgeneral.m4 acspecific.m4 configure.in > configure && \
|
|
|
|
chmod +x configure
|
|
|
|
|
1993-06-07 19:00:55 +08:00
|
|
|
clean:
|
1993-07-09 09:22:48 +08:00
|
|
|
rm -f autoconf autoheader
|
1993-06-07 19:00:55 +08:00
|
|
|
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
|
|
|
|
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
|
|
|
|
|
|
|
|
mostlyclean: clean
|
|
|
|
|
|
|
|
distclean: clean
|
|
|
|
rm -f Makefile config.status
|
|
|
|
|
|
|
|
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
|
|
|
|
|
|
|
dist: Makefile $(DISTFILES)
|
|
|
|
echo autoconf-`sed -e '/define(AC_ACVERSION,/!d' -e 's/[^0-9.]*\([0-9.]*\).*/\1/' -e q acgeneral.m4` > .fname
|
|
|
|
rm -rf `cat .fname`
|
|
|
|
mkdir `cat .fname`
|
|
|
|
for file in $(DISTFILES); do \
|
|
|
|
ln $$file `cat .fname` \
|
1993-07-09 09:22:48 +08:00
|
|
|
|| { echo copying $$file instead; cp -p $$file `cat .fname`; }; \
|
1993-06-07 19:00:55 +08:00
|
|
|
done
|
1993-07-09 09:22:48 +08:00
|
|
|
tar --gzip -chf `cat .fname`.tar.gz `cat .fname`
|
1993-06-07 19:00:55 +08:00
|
|
|
rm -rf `cat .fname` .fname
|
|
|
|
|
|
|
|
# Prevent GNU make v3 from overflowing arg limit on SysV.
|
|
|
|
.NOEXPORT:
|