autoconf/doc/Makefile.in

217 lines
6.8 KiB
Makefile
Raw Normal View History

1993-06-07 19:00:55 +08:00
# Makefile for Autoconf.
# 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
1996-06-13 01:55:25 +08:00
# Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
# 02111-1307, USA.
1993-06-07 19:00:55 +08:00
#### 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@
1995-02-10 06:44:35 +08:00
AWK = @AWK@
1994-10-27 06:41:36 +08:00
PERL = @PERL@
1994-04-30 09:56:30 +08:00
1995-11-22 06:45:24 +08:00
# Programs that are ALWAYS installed (and are created in the build dir).
1994-10-27 06:41:36 +08:00
ASCRIPTS = autoconf autoheader autoreconf autoupdate ifnames
1995-11-22 06:45:24 +08:00
# All programs, including those only installed if you have perl.
1994-10-27 06:41:36 +08:00
SCRIPTS = $(ASCRIPTS) @SCRIPTS@
1993-06-07 19:00:55 +08:00
1994-10-19 13:42:42 +08:00
transform=@program_transform_name@
prefix = @prefix@
exec_prefix = @exec_prefix@
1993-06-07 19:00:55 +08:00
1993-07-09 09:22:48 +08:00
# Directory in which to install scripts.
1995-11-21 04:34:22 +08:00
bindir = @bindir@
1993-06-07 19:00:55 +08:00
1993-07-09 09:22:48 +08:00
# Directory in which to install library files.
1995-11-21 04:34:22 +08:00
datadir = @datadir@
acdatadir = $(datadir)/autoconf
1993-06-07 19:00:55 +08:00
# Directory in which to install documentation info files.
1995-11-21 04:34:22 +08:00
infodir = @infodir@
1993-06-07 19:00:55 +08:00
#### End of system configuration section. ####
SHELL = /bin/sh
1994-07-25 11:33:46 +08:00
SUBDIRS = testsuite
1994-08-31 02:42:54 +08:00
1994-08-31 04:24:50 +08:00
M4FILES = autoconf.m4 acgeneral.m4 acoldnames.m4 acspecific.m4 autoheader.m4
1994-08-31 02:42:54 +08:00
# Files that can be generated, but should be up to date for a distribution.
DISTDEP = info Makefile
# Files to distribute.
DISTFILES = AUTHORS COPYING ChangeLog ChangeLog.1 INSTALL \
1994-08-31 02:42:54 +08:00
Makefile.in NEWS README TODO $(M4FILES) \
acconfig.h acfunctions acheaders acidentifiers \
acmakevars acprograms autoconf.info* \
autoconf.sh autoconf.texi install.texi \
autoheader.sh autoscan.pl autoreconf.sh autoupdate.sh ifnames.sh \
config.guess config.sub configure configure.in \
1994-09-11 14:20:58 +08:00
install-sh mkinstalldirs texinfo.tex \
testsuite/Makefile.in testsuite/config/*.exp \
1994-07-20 06:14:03 +08:00
testsuite/lib/*.exp testsuite/autoconf.[gs]/*.exp \
standards.texi make-stds.texi standards.info*
1993-06-07 19:00:55 +08:00
1995-02-10 06:44:35 +08:00
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'
1993-06-07 19:00:55 +08:00
1995-07-26 13:30:39 +08:00
all: ${SCRIPTS} info
1993-07-09 09:22:48 +08:00
1994-09-28 06:05:22 +08:00
.SUFFIXES:
.SUFFIXES: .sh .pl
1994-09-28 06:05:22 +08:00
.sh:
rm -f $@ $@.tmp
1994-10-02 12:34:29 +08:00
$(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
1994-09-28 06:05:22 +08:00
.pl:
rm -f $@ $@.tmp
1994-10-02 12:34:29 +08:00
$(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
1993-07-09 09:22:48 +08:00
info: autoconf.info @standards_info@ INSTALL
1993-06-07 19:00:55 +08:00
1995-03-07 08:19:27 +08:00
# Use --no-split to avoid creating filenames > 14 chars.
autoconf.info: autoconf.texi install.texi
1995-03-07 08:19:27 +08:00
$(MAKEINFO) -I$(srcdir) $(srcdir)/autoconf.texi --no-split --output=$@
1993-07-20 10:07:49 +08:00
INSTALL: install.texi
$(MAKEINFO) -I$(srcdir) $(srcdir)/install.texi --output=$@ \
--no-headers --no-validate
standards.info: standards.texi make-stds.texi
1995-03-07 08:19:27 +08:00
$(MAKEINFO) -I$(srcdir) $(srcdir)/standards.texi --no-split --output=$@
dvi: autoconf.dvi @standards_dvi@
1993-07-20 10:07:49 +08:00
autoconf.dvi: autoconf.texi
$(TEXI2DVI) $(srcdir)/autoconf.texi
standards.dvi: standards.texi make-stds.texi
$(TEXI2DVI) $(srcdir)/standards.texi
1993-07-20 10:07:49 +08:00
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"
1994-10-27 06:41:36 +08:00
installcheck: all install
cd testsuite && ${MAKE} AUTOCONF=${bindir}/autoconf $@
1993-06-07 19:00:55 +08:00
1994-05-06 12:04:40 +08:00
installdirs:
$(SHELL) ${srcdir}/mkinstalldirs $(bindir) $(infodir) $(acdatadir)
1993-07-09 09:22:48 +08:00
1994-08-31 02:42:54 +08:00
install: all $(M4FILES) acconfig.h installdirs install-info
@case `$(M4) --help < /dev/null 2>&1` in \
1994-08-31 04:24:50 +08:00
*reload-state*) echo installing frozen m4 files; \
1994-09-15 08:58:48 +08:00
$(M4) -F $(acdatadir)/autoconf.m4f -I${srcdir} ${srcdir}/autoconf.m4 ; \
$(M4) -F $(acdatadir)/autoheader.m4f -I${srcdir} ${srcdir}/autoheader.m4 ;; \
1994-08-31 02:42:54 +08:00
*traditional*) ;; \
*) echo Error: Autoconf requires GNU m4 1.1 or later; exit 1 ;; \
esac
1994-10-27 06:41:36 +08:00
for p in $(ASCRIPTS); do \
1995-11-22 06:45:24 +08:00
$(INSTALL_PROGRAM) $$p $(bindir)/`echo $$p|sed '$(transform)'`; \
1994-08-26 02:05:45 +08:00
done
1994-08-31 02:42:54 +08:00
for i in $(M4FILES) acconfig.h; do \
1994-08-26 02:05:45 +08:00
$(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \
done
-if test -f autoscan; then \
1994-10-19 13:42:42 +08:00
$(INSTALL_PROGRAM) autoscan $(bindir)/`echo autoscan|sed '$(transform)'`; \
1994-08-26 02:05:45 +08:00
for i in acfunctions acheaders acidentifiers acprograms \
acmakevars; do \
$(INSTALL_DATA) $(srcdir)/$$i $(acdatadir)/$$i; \
done; \
else :; fi
1995-03-07 08:19:27 +08:00
# Don't cd, to avoid breaking install-sh references.
install-info: info installdirs
1995-03-07 08:19:27 +08:00
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
1993-06-07 19:00:55 +08:00
uninstall:
1994-10-27 06:41:36 +08:00
for p in $(SCRIPTS); do \
rm -f $(bindir)/`echo $$p|sed '$(transform)'`; \
done
rm -fr $(acdatadir)
1995-03-09 01:48:39 +08:00
cd $(infodir) && rm -f autoconf.info*
if test -f standards.info || test -f $(srcdir)/standards.info; \
1995-03-09 01:48:39 +08:00
then cd $(infodir) && rm -f standards.info*; fi
1993-06-07 19:00:55 +08:00
1994-10-27 06:41:36 +08:00
${srcdir}/configure: configure.in $(M4FILES)
1995-03-09 01:48:39 +08:00
cd $(srcdir) && \
1995-03-24 07:49:35 +08:00
rm -f configure configure.tmp && \
$(M4) autoconf.m4 configure.in > configure.tmp && \
chmod +x configure.tmp && mv configure.tmp configure
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
1995-02-08 06:41:14 +08:00
maintainer-clean::
@echo "This command is intended for maintainers to use;"
@echo "rebuilding the deleted files requires makeinfo."
rm -f TAGS *.info* INSTALL
clean mostlyclean distclean maintainer-clean::
1994-07-25 11:33:46 +08:00
for dir in $(SUBDIRS); do \
echo making $@ in $$dir ; \
1995-03-09 01:48:39 +08:00
(cd $$dir && $(MAKE) $@) ; \
1994-07-25 11:33:46 +08:00
done
1995-02-08 06:41:14 +08:00
clean mostlyclean distclean maintainer-clean::
1994-10-27 06:41:36 +08:00
rm -f $(SCRIPTS) *.tmp
1993-06-07 19:00:55 +08:00
rm -f *.aux *.cp *.cps *.dvi *.fn *.fns *.ky *.kys *.log
1994-08-25 02:28:20 +08:00
rm -f *.pg *.pgs *.toc *.tp *.tps *.vr *.vrs
1994-09-07 23:07:09 +08:00
rm -f *.ev *.evs *.ov *.ovs *.cv *.cvs *.ma *.mas
1993-06-07 19:00:55 +08:00
1995-02-08 06:41:14 +08:00
distclean maintainer-clean::
1994-06-23 02:22:34 +08:00
rm -f Makefile config.status config.cache config.log
1993-06-07 19:00:55 +08:00
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)
distname=`sed -e '/define(AC_ACVERSION,/!d' \
-e 's/[^0-9.]*\([0-9.]*\).*/autoconf-\1/' -e q acgeneral.m4`; \
rm -fr $$distname; \
1994-07-20 06:14:03 +08:00
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; \
1994-09-07 23:07:09 +08:00
chmod -R a+rX $$distname; \
tar -chz -f $$distname.tar.gz $$distname; \
rm -fr $$distname