1 ## Process this file with automake to create Makefile.in -*-Makefile-*-
3 ## Makefile for Autoconf.
4 ## Copyright (C) 2001, 2004, 2005 Free Software Foundation, Inc.
6 ## This program is free software; you can redistribute it and/or modify
7 ## it under the terms of the GNU General Public License as published by
8 ## the Free Software Foundation; either version 2, or (at your option)
11 ## This program is distributed in the hope that it will be useful,
12 ## but WITHOUT ANY WARRANTY; without even the implied warranty of
13 ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 ## GNU General Public License for more details.
16 ## You should have received a copy of the GNU General Public License
17 ## along with this program; if not, write to the Free Software
18 ## Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
22 $(srcdir)/autoconf.1 \
23 $(srcdir)/autoheader.1 \
24 $(srcdir)/autom4te.1 \
25 $(srcdir)/autoreconf.1 \
26 $(srcdir)/autoscan.1 \
27 $(srcdir)/autoupdate.1 \
29 $(srcdir)/config.guess.1 \
30 $(srcdir)/config.sub.1
32 EXTRA_DIST = $(dist_man_MANS:.1=.x) common.x
33 MAINTAINERCLEANFILES = $(dist_man_MANS)
35 # Depend on configure.ac to get version number changes.
36 common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x
37 binsrcdir = $(top_srcdir)/bin
38 $(srcdir)/autoconf.1: $(common_dep) $(binsrcdir)/autoconf.as
39 $(srcdir)/autoheader.1: $(common_dep) $(binsrcdir)/autoheader.in
40 $(srcdir)/autom4te.1: $(common_dep) $(binsrcdir)/autom4te.in
41 $(srcdir)/autoreconf.1: $(common_dep) $(binsrcdir)/autoreconf.in
42 $(srcdir)/autoscan.1: $(common_dep) $(binsrcdir)/autoscan.in
43 $(srcdir)/autoupdate.1: $(common_dep) $(binsrcdir)/autoupdate.in
44 $(srcdir)/ifnames.1: $(common_dep) $(binsrcdir)/ifnames.in
46 # Independent from this package.
47 $(srcdir)/config.guess.1: $(top_srcdir)/config/config.guess
48 $(srcdir)/config.sub.1: $(top_srcdir)/config/config.sub
50 remove_time_stamp = 's/^\(\.TH[^"]*"[^"]*"[^"]*\)"[^"]*"/\1/'
52 MOSTLYCLEANFILES = $(srcdir)/*.t
57 @program=`expr "/$*" : '.*/\(.*\)'` && \
61 for dir in $(top_builddir)/bin $(top_builddir)/tests; do \
62 echo cd $$dir '&&' $(MAKE) $(AM_MAKEFLAGS) $$program && \
63 (cd $$dir && $(MAKE) $(AM_MAKEFLAGS) $$program) || exit; \
66 echo "Updating man page $@"
67 PATH="$(top_builddir)/tests@PATH_SEPARATOR@$(top_srcdir)/config@PATH_SEPARATOR@$$PATH"; \
71 --include=$(srcdir)/common.x \
72 --output=$@.t `echo '$*' | sed 's,.*/,,'`
73 if sed $(remove_time_stamp) $@ >$@a.t 2>/dev/null && \
74 sed $(remove_time_stamp) $@.t | cmp $@a.t - >/dev/null 2>&1; then \