2004-12-10 Stepan Kasal * man/Makefile.am (man_stamps): New stamp files to trace the dependencies of the manpages. * man/.cvsignore: Add ``*.stamp''. Index: man/.cvsignore =================================================================== RCS file: /cvsroot/autoconf/autoconf/man/.cvsignore,v retrieving revision 1.2 diff -u -r1.2 .cvsignore --- man/.cvsignore 27 Jan 2004 19:07:10 -0000 1.2 +++ man/.cvsignore 10 Dec 2004 12:14:42 -0000 @@ -1,2 +1,3 @@ Makefile autoscan.log +*.stamp Index: man/Makefile.am =================================================================== RCS file: /cvsroot/autoconf/autoconf/man/Makefile.am,v retrieving revision 1.18 diff -u -r1.18 Makefile.am --- man/Makefile.am 10 Dec 2004 05:00:01 -0000 1.18 +++ man/Makefile.am 10 Dec 2004 12:14:42 -0000 @@ -18,31 +18,43 @@ ## Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA ## 02111-1307, USA. -dist_man_MANS = autoconf.1 autoreconf.1 autoheader.1 autoupdate.1 ifnames.1 \ -autoscan.1 autom4te.1 config.guess.1 config.sub.1 +dist_man_MANS = autoconf.1 autoheader.1 autom4te.1 autoreconf.1 autoscan.1 \ +autoupdate.1 ifnames.1 config.guess.1 config.sub.1 -man_aux = autoconf.x autoreconf.x autoheader.x autoupdate.x ifnames.x \ -autoscan.x autom4te.x config.guess.x config.sub.x +man_aux = autoconf.x autoheader.x autom4te.x autoreconf.x autoscan.x \ +autoupdate.x ifnames.x config.guess.x config.sub.x -EXTRA_DIST = $(man_aux) common.x +man_stamps = autoconf.stamp autoheader.stamp autom4te.stamp \ +autoreconf.stamp autoscan.stamp autoupdate.stamp ifnames.stamp \ +config.guess.stamp config.sub.stamp + +EXTRA_DIST = $(man_aux) common.x $(man_stamps) MAINTAINERCLEANFILES = $(dist_man_MANS) # Depend on configure.ac to get version number changes. common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x binsrcdir = $(top_srcdir)/bin -autoconf.1: $(common_dep) $(srcdir)/autoconf.x $(binsrcdir)/autoconf.as -autoheader.1: $(common_dep) $(srcdir)/autoheader.x $(binsrcdir)/autoheader.in -autom4te.1: $(common_dep) $(srcdir)/autom4te.x $(binsrcdir)/autom4te.in -autoreconf.1: $(common_dep) $(srcdir)/autoreconf.x $(binsrcdir)/autoreconf.in -autoscan.1: $(common_dep) $(srcdir)/autoscan.x $(binsrcdir)/autoscan.in -autoupdate.1: $(common_dep) $(srcdir)/autoupdate.x $(binsrcdir)/autoupdate.in -ifnames.1: $(common_dep) $(srcdir)/ifnames.x $(binsrcdir)/ifnames.in +autoconf.1: $(common_dep) autoconf.stamp +autoheader.1: $(common_dep) autoheader.stamp +autom4te.1: $(common_dep) autom4te.stamp +autoreconf.1: $(common_dep) autoreconf.stamp +autoscan.1: $(common_dep) autoscan.stamp +autoupdate.1: $(common_dep) autoupdate.stamp +ifnames.1: $(common_dep) ifnames.stamp + +autoconf.stamp: $(binsrcdir)/autoconf.as +autoheader.stamp: $(binsrcdir)/autoheader.in +autom4te.stamp: $(binsrcdir)/autom4te.in +autoreconf.stamp: $(binsrcdir)/autoreconf.in +autoscan.stamp: $(binsrcdir)/autoscan.in +autoupdate.stamp: $(binsrcdir)/autoupdate.in +ifnames.stamp: $(binsrcdir)/ifnames.in # Independent from this package. -config.guess.1: $(srcdir)/config.guess.x $(top_srcdir)/config/config.guess -config.sub.1: $(srcdir)/config.sub.x $(top_srcdir)/config/config.sub +config.guess.1: $(top_srcdir)/config/config.guess +config.sub.1: $(top_srcdir)/config/config.sub -SUFFIXES = .x .1 +SUFFIXES = .x .1 .stamp .x.1: echo "Updating man page $@" @@ -52,3 +64,13 @@ --include=$(srcdir)/$*.x \ --include=$(srcdir)/common.x \ --output=$@ $* + +# Each stamp file certifies that the respective script and tests wrapper +# have been refreshed. +# Well, the .stamp file doesn't actually depend on .x, but we need +# a pattern rule to get $*. +.x.stamp: + touch address@hidden + cd $(top_builddir)/bin && $(MAKE) $(AM_MAKEFLAGS) $* + cd $(top_builddir)/tests && $(MAKE) $(AM_MAKEFLAGS) $* + mv address@hidden $@