2001-04-11 23:15:20 +08:00
|
|
|
## Process this file with automake to create Makefile.in -*-Makefile-*-
|
|
|
|
|
|
|
|
## Makefile for Autoconf.
|
2005-02-01 07:25:08 +08:00
|
|
|
## Copyright (C) 2001, 2004, 2005 Free Software Foundation, Inc.
|
2001-04-11 23:15:20 +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
|
2005-05-14 15:00:38 +08:00
|
|
|
## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
|
|
|
|
## 02110-1301, USA.
|
2001-04-11 23:15:20 +08:00
|
|
|
|
2004-12-29 14:54:44 +08:00
|
|
|
dist_man_MANS = \
|
|
|
|
$(srcdir)/autoconf.1 \
|
|
|
|
$(srcdir)/autoheader.1 \
|
|
|
|
$(srcdir)/autom4te.1 \
|
|
|
|
$(srcdir)/autoreconf.1 \
|
|
|
|
$(srcdir)/autoscan.1 \
|
|
|
|
$(srcdir)/autoupdate.1 \
|
|
|
|
$(srcdir)/ifnames.1 \
|
|
|
|
$(srcdir)/config.guess.1 \
|
|
|
|
$(srcdir)/config.sub.1
|
|
|
|
|
|
|
|
EXTRA_DIST = $(dist_man_MANS:.1=.x) common.x
|
2001-10-06 00:12:06 +08:00
|
|
|
MAINTAINERCLEANFILES = $(dist_man_MANS)
|
2000-01-26 20:32:13 +08:00
|
|
|
|
2001-07-17 15:53:06 +08:00
|
|
|
# Depend on configure.ac to get version number changes.
|
|
|
|
common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x
|
2001-08-01 22:28:57 +08:00
|
|
|
binsrcdir = $(top_srcdir)/bin
|
2004-12-29 14:54:44 +08:00
|
|
|
$(srcdir)/autoconf.1: $(common_dep) $(binsrcdir)/autoconf.as
|
|
|
|
$(srcdir)/autoheader.1: $(common_dep) $(binsrcdir)/autoheader.in
|
|
|
|
$(srcdir)/autom4te.1: $(common_dep) $(binsrcdir)/autom4te.in
|
|
|
|
$(srcdir)/autoreconf.1: $(common_dep) $(binsrcdir)/autoreconf.in
|
|
|
|
$(srcdir)/autoscan.1: $(common_dep) $(binsrcdir)/autoscan.in
|
|
|
|
$(srcdir)/autoupdate.1: $(common_dep) $(binsrcdir)/autoupdate.in
|
|
|
|
$(srcdir)/ifnames.1: $(common_dep) $(binsrcdir)/ifnames.in
|
2000-12-07 00:02:58 +08:00
|
|
|
|
|
|
|
# Independent from this package.
|
2004-12-29 14:54:44 +08:00
|
|
|
$(srcdir)/config.guess.1: $(top_srcdir)/config/config.guess
|
|
|
|
$(srcdir)/config.sub.1: $(top_srcdir)/config/config.sub
|
2000-01-26 20:32:13 +08:00
|
|
|
|
2005-06-11 01:56:21 +08:00
|
|
|
remove_time_stamp = 's/^\(\.TH[^"]*"[^"]*"[^"]*\)"[^"]*"/\1/'
|
|
|
|
|
|
|
|
MOSTLYCLEANFILES = $(srcdir)/*.t
|
|
|
|
|
2000-01-26 20:32:13 +08:00
|
|
|
SUFFIXES = .x .1
|
|
|
|
|
|
|
|
.x.1:
|
2005-02-02 08:25:41 +08:00
|
|
|
@program=`expr "/$*" : '.*/\(.*\)'` && \
|
|
|
|
case $$program in \
|
|
|
|
config.*) ;; \
|
|
|
|
*) \
|
|
|
|
for dir in $(top_builddir)/bin $(top_builddir)/tests; do \
|
|
|
|
echo cd $$dir '&&' $(MAKE) $(AM_MAKEFLAGS) $$program && \
|
|
|
|
(cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $$program) || exit; \
|
|
|
|
done;; \
|
2005-02-01 07:25:08 +08:00
|
|
|
esac
|
* configure.ac: Also find tested executables in bin.
* bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
* bin/autoscan.in, autoupdate.in: Use exclusively the name of the
installed peer executables, only PATH is allowed to resolve it.
Pass `autoconf_dir' via options, not via invisible envvars.
* lib/Autom4te/General.pm (&find_peer): Remove.
* lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
`abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
* man/Makefile.am: Let help2man rely on PATH instead of trying to
find the executables for it.
* tests/Makefile.am: Major cleanup. Too lazy to document...
* tests/atlocal.in: Remove all the obscure envvar manipulations.
We only need PERL.
* tests/atspecific.m4, tests/tools.at: Passing --localdir is
indeed related to running the test suite, while passing
--autoconf-dir and others is related to running non installed
Autoconf executables. So don't do that, leave it to...
* tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
* tests/autoscan: New.
* tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
refer to library files: rely on --language.
2001-08-31 21:30:11 +08:00
|
|
|
echo "Updating man page $@"
|
* lib/autoconf/status.m4 (_AC_SRCPATHS): Compute and provide
ac_buildpath, ac_top_buildpath, ac_srcpath, and ac_top_srcpath.
(_AC_OUTPUT_FILES): Also substitute srcpath, top_srcpath,
builddir, buildpath, top_builddir, and top_buildpath.
(_AC_OUTPUT_SUBDIRS): Compute the dir variables *before* changing
the current directory.
* lib/autoconf/general.m4 (_AC_INIT_HELP): Compute the dir
variables *before* changing the current directory.
Skip nonexistent dirs.
* doc/autoconf.texi (Preset Output Variables): Document these
variables.
* lib/autotest/general.m4: Do not reset AT_victims.
Don't compute at_srcdir nor at_top_srcdir.
* tests/tools.at: Hence use top_srcdir.
* tests/Makefile.am, tests/autoconf, tests/autoheader,
* tests/autom4te, tests/autoreconf, tests/autoupdate, tests/ifnames:
Remove.
* tests/autoreconf.in, tests/wrappl.in, tests/autom4te.in,
* tests/wrapsh.in, tests/autoupdate.in: New.
* tests/Makefile.am (DISTCLEANFILES, EXTRA_DIST): Adjust.
* configure.ac: Build the position independent wrappers.
* man/Makefile.am: Now that test wrappers are position
independent, use them and drop dark envvar magic.
2001-09-24 01:17:46 +08:00
|
|
|
PATH="$(top_builddir)/tests@PATH_SEPARATOR@$(top_srcdir)/config@PATH_SEPARATOR@$$PATH"; \
|
2001-09-20 23:00:13 +08:00
|
|
|
export PATH; \
|
* configure.ac: Also find tested executables in bin.
* bin/autoconf.in, bin/autoheader.in, bin/autoreconf.in,
* bin/autoscan.in, autoupdate.in: Use exclusively the name of the
installed peer executables, only PATH is allowed to resolve it.
Pass `autoconf_dir' via options, not via invisible envvars.
* lib/Autom4te/General.pm (&find_peer): Remove.
* lib/autotest/general.m4 (AT_INIT): `AUTOTEST_PATH=a:b' gives
`abuild:asrc:bbuild:bsrc', not `abuild:bbuild:asrc:bsrc'.
* man/Makefile.am: Let help2man rely on PATH instead of trying to
find the executables for it.
* tests/Makefile.am: Major cleanup. Too lazy to document...
* tests/atlocal.in: Remove all the obscure envvar manipulations.
We only need PERL.
* tests/atspecific.m4, tests/tools.at: Passing --localdir is
indeed related to running the test suite, while passing
--autoconf-dir and others is related to running non installed
Autoconf executables. So don't do that, leave it to...
* tests/autoconf, tests/autoheader, tests/autom4te, tests/autoupdate,
* tests/autoscan: New.
* tests/atspecific.m4 (AT_CHECK_M4SUGAR, AT_CHECK_M4SH): Don't
refer to library files: rely on --language.
2001-08-31 21:30:11 +08:00
|
|
|
$(HELP2MAN) \
|
2004-12-29 14:54:44 +08:00
|
|
|
--include=$*.x \
|
2000-01-26 20:32:13 +08:00
|
|
|
--include=$(srcdir)/common.x \
|
2005-06-11 01:56:21 +08:00
|
|
|
--output=$@.t `echo '$*' | sed 's,.*/,,'`
|
|
|
|
if sed $(remove_time_stamp) $@ >$@a.t 2>/dev/null && \
|
|
|
|
sed $(remove_time_stamp) $@.t | cmp $@a.t - >/dev/null 2>&1; then \
|
|
|
|
touch $@; \
|
|
|
|
else \
|
|
|
|
mv $@.t $@; \
|
|
|
|
fi
|
|
|
|
rm -f $@*.t
|