summaryrefslogtreecommitdiff
path: root/man
diff options
context:
space:
mode:
authorJim Meyering <meyering@redhat.com>2008-01-26 15:48:53 +0100
committerJim Meyering <meyering@redhat.com>2008-01-26 17:16:38 +0100
commitca3de82a181dfb3b6627e4a3a7abcdbe24904b56 (patch)
tree3753c2329b791fa40dd7ec40aacccc3d833299ac /man
parent76c9c9845e9458ca9cc07af3b06326685a1684a7 (diff)
downloadcoreutils-ca3de82a181dfb3b6627e4a3a7abcdbe24904b56.tar.xz
Ensure that each version string change propagates to man pages.
* man/Makefile.am (common_dep): Don't depend on configure.ac for version changes. Instead, depend on ../VERSION. (../VERSION): New rule. * Makefile.am (DISTCLEANFILES): Define. * GNUmakefile: Update ./VERSION. * .gitignore: List VERSION. Reported by Sven Joachim.
Diffstat (limited to 'man')
-rw-r--r--man/Makefile.am9
1 files changed, 6 insertions, 3 deletions
diff --git a/man/Makefile.am b/man/Makefile.am
index b7b960e8f..6cad1a44e 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -1,6 +1,6 @@
# Make coreutils man pages. -*-Makefile-*-
-# Copyright (C) 2002-2007 Free Software Foundation, Inc.
+# Copyright (C) 2002-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
@@ -22,8 +22,8 @@ man_aux = $(dist_man_MANS:.1=.x)
EXTRA_DIST = $(man_aux) $(NO_INSTALL_PROGS_DEFAULT:%=%.x) help2man
MAINTAINERCLEANFILES = $(dist_man_MANS)
-# Depend on configure.ac to get version number changes.
-common_dep = $(top_srcdir)/configure.ac
+# Depend on ../VERSION to get version number changes.
+common_dep = ../VERSION
# Note that arch depends on uname.c
arch.1: $(common_dep) $(srcdir)/arch.x ../src/uname.c
@@ -198,3 +198,6 @@ check-programs-vs-x:
|| { echo missing $$p.x 1>&2; status=1; }; \
done; \
exit $$status
+
+../VERSION:
+ echo $(VERSION) > $@-t && mv $@-t $@