diff options
author | Eric Blake <ebb9@byu.net> | 2008-04-03 16:45:11 -0600 |
---|---|---|
committer | Eric Blake <ebb9@byu.net> | 2008-04-03 16:57:56 -0600 |
commit | 1fda5799d3763286e53673bb1a0174c6c3518a6c (patch) | |
tree | 30fa5516d908bdf81c23b1e60cf4110186ee55c9 /man | |
parent | f752252f504a1487c16322b23a6ae0084ebb4b46 (diff) | |
download | autoconf-1fda5799d3763286e53673bb1a0174c6c3518a6c.tar.gz |
Fix version number generation in man pages.
* Makefile.am (EXTRA_DIST): Distribute .version.
(.version): New rule.
* man/Makefile.am (common_dep): Depend on .version, not
configure.ac.
(.x.1): Use package name for version string.
* GNUmakefile [!_have-Makefile]: Sync from upstream, again.
* build-aux/git-version-gen: Sync from upstream.
Signed-off-by: Eric Blake <ebb9@byu.net>
Diffstat (limited to 'man')
-rw-r--r-- | man/Makefile.am | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/man/Makefile.am b/man/Makefile.am index 9485d28d..119c91d7 100644 --- a/man/Makefile.am +++ b/man/Makefile.am @@ -1,6 +1,6 @@ # Make Autoconf man pages. -# Copyright (C) 2001, 2004-2007 Free Software Foundation, Inc. +# Copyright (C) 2001, 2004-2008 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 @@ -29,8 +29,8 @@ dist_man_MANS = \ EXTRA_DIST = $(dist_man_MANS:.1=.x) common.x MAINTAINERCLEANFILES = $(dist_man_MANS) -# Depend on configure.ac to get version number changes. -common_dep = $(top_srcdir)/configure.ac $(srcdir)/common.x +# Depend on .version to get version number changes. +common_dep = $(top_srcdir)/.version $(srcdir)/common.x binsrcdir = $(top_srcdir)/bin $(srcdir)/autoconf.1: $(common_dep) $(binsrcdir)/autoconf.as $(srcdir)/autoheader.1: $(common_dep) $(binsrcdir)/autoheader.in @@ -57,6 +57,7 @@ SUFFIXES = .x .1 $(HELP2MAN) \ --include=$*.x \ --include=$(srcdir)/common.x \ + --source='$(PACKAGE_STRING)' \ --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 \ |