mirror of
git://git.sv.gnu.org/autoconf
synced 2024-11-21 01:01:48 +08:00
269df76643
contains all the possible subdirs for `--help=recursive', and another, `subdirs' which can be built dynamically for launching sub configurations. * acgeneral.m4 (AC_CONFIG_SUBDIRS): Define `subdirs' dynamically. Define `ac_subdirs_all' statically. Warn if the argument is not a literal. (AC_LIST_SUBDIRS): Rename as... (_AC_LIST_SUBDIRS): this. (_AC_INIT_HELP): Loop over `ac_subdirs_all', not `subdirs'. (_AC_OUTPUT_SUBDIRS): Loop over `subdirs', not `AC_LIST_SUBDIRS'. * doc/autoconf.texi (Subdirectories): Adjust. * acgeneral.m4: Replace all the `test ! -d foo && bar' with `test -d foo || bar'. * Makefile.am (.m4.m4f): Stop hiding what you're doing. Don't check for GNU m4, let it die.
97 lines
3.2 KiB
Makefile
97 lines
3.2 KiB
Makefile
## Process this file with automake to create Makefile.in.
|
|
|
|
## Makefile for Autoconf.
|
|
## Copyright (C) 1999, 2000 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., 59 Temple Place - Suite 330, Boston, MA
|
|
## 02111-1307, USA.
|
|
|
|
AUTOMAKE_OPTIONS = check-news 1.4 readme-alpha
|
|
|
|
SUBDIRS = . m4 man doc tests
|
|
|
|
SUFFIXES = .m4 .m4f .pl .sh
|
|
## There is currently no means with Automake not to run aclocal.
|
|
ACLOCAL_AMFLAGS = --version >/dev/null && touch aclocal.m4
|
|
|
|
bin_SCRIPTS = autoconf autoheader autoreconf autoupdate ifnames @PERLSCRIPTS@
|
|
EXTRA_SCRIPTS = autoscan
|
|
|
|
# FIXME:
|
|
# s/distpackageDATA/dist_pkgdata_DATA/
|
|
# s/nodistpackageDATA/nodist_pkgdata_DATA/
|
|
# and adapt dependencies once we use a more recent Automake
|
|
|
|
distpkgdataDATA = \
|
|
acfunctions acheaders acidentifiers acmakevars acprograms \
|
|
libm4.m4 acgeneral.m4 acoldnames.m4 acspecific.m4 autoconf.m4 \
|
|
aclang.m4 acversion.m4
|
|
|
|
nodistpkgdataDATA = autoconf.m4f
|
|
|
|
pkgdata_DATA = $(distpkgdataDATA) $(nodistpkgdataDATA)
|
|
|
|
OLDCHANGELOGS = ChangeLog.0 ChangeLog.1
|
|
EXTRA_DIST = $(OLDCHANGELOGS) \
|
|
autoconf.sh autoheader.sh autoreconf.sh autoupdate.sh \
|
|
ifnames.sh autoscan.pl INSTALL.txt \
|
|
$(distpkgdataDATA)
|
|
|
|
# Files that should be removed, but which Automake does not know:
|
|
# the frozen files and the scripts.
|
|
CLEANFILES = autoconf.m4f \
|
|
$(bin_SCRIPTS)
|
|
|
|
# INSTALL is a special case. Automake seems to have a single name space
|
|
# for both targets and variables. If we just use INSTALL, then the var
|
|
# $(INSTALL) is not defined, and the install target fails.
|
|
|
|
INSTALL.txt: $(top_srcdir)/doc/install.texi
|
|
$(MAKEINFO) $< --no-headers --no-validate --no-split --output=$@
|
|
|
|
install-data-hook: INSTALL.txt
|
|
@$(NORMAL_INSTALL)
|
|
@list='INSTALL'; for p in $$list; do \
|
|
if test -f "$$p.txt"; then d= ; else d="$(srcdir)/"; fi; \
|
|
f="`echo $$p | sed -e 's|^.*/||'`"; \
|
|
echo " $(INSTALL_DATA) $$d$$p.txt $(DESTDIR)$(pkgdatadir)/$$f"; \
|
|
$(INSTALL_DATA) $$d$$p.txt $(DESTDIR)$(pkgdatadir)/$$f; \
|
|
done
|
|
|
|
# The scripts.
|
|
|
|
editsh = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e \
|
|
's,@''M4''@,$(M4),g' -e 's,@''AWK''@,$(AWK),g' \
|
|
-e 's,@''SHELL''@,$(SHELL),g' \
|
|
-e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
|
editpl = sed -e 's,@''datadir''@,$(pkgdatadir),g' -e 's,@''PERL''@,$(PERL),g' \
|
|
-e 's,@''VERSION''@,$(VERSION),g' -e 's,@''PACKAGE''@,$(PACKAGE),g'
|
|
|
|
.sh:
|
|
rm -f $@ $@.tmp
|
|
$(editsh) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
|
|
|
|
.pl:
|
|
rm -f $@ $@.tmp
|
|
$(editpl) $< > $@.tmp && chmod +x $@.tmp && mv $@.tmp $@
|
|
|
|
.m4.m4f:
|
|
$(M4) -F $*.m4f -I$(srcdir) $(srcdir)/$*.m4
|
|
|
|
common = libm4.m4 acgeneral.m4 acspecific.m4 acoldnames.m4 acversion.m4 \
|
|
aclang.m4
|
|
|
|
autoconf.m4f: autoconf.m4 $(common)
|