summaryrefslogtreecommitdiff
path: root/man/local.mk
diff options
context:
space:
mode:
authorStefano Lattarini <stefano.lattarini@gmail.com>2012-09-01 01:46:51 +0200
committerJim Meyering <meyering@redhat.com>2012-09-01 21:28:12 +0200
commit98954ce2aa95743fbcf155cf29a32b03f497efe0 (patch)
tree5c4196cb7e94c1b0e6d1e12126c5ab0a1a3db25f /man/local.mk
parent7ac3e4502e62520e1855f5c8128ae658e1925ea2 (diff)
downloadcoreutils-98954ce2aa95743fbcf155cf29a32b03f497efe0.tar.xz
build: simplify: get rid of yet some more indirection variables
* configure.ac: Adjust and improve few comments. (MAN): Rename ... (man1_MANS): ... to this. Ensure it isn't initialized in all Makefiles (which would lead to spurious errors), by calling AM_SUBST_NOTMAKE on it. Also call AM_SUBST_NOTMAKE on 'EXTRA_MANS', for consistency. * man/local.mk (man1_MANS): Simply define to '@man1_MANS@'.
Diffstat (limited to 'man/local.mk')
-rw-r--r--man/local.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/man/local.mk b/man/local.mk
index 5e8982910..99eb2159b 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -18,7 +18,7 @@
EXTRA_DIST += man/help2man
-man1_MANS = $(MAN)
+man1_MANS = @man1_MANS@
EXTRA_DIST += $(man1_MANS) $(man1_MANS:.1=.x)
MAINTAINERCLEANFILES += $(man1_MANS)
@@ -149,8 +149,8 @@ man/whoami.1: $(mandep) src/whoami.c
man/yes.1: $(mandep) src/yes.c
# This is required so that changes to e.g., emit_bug_reporting_address
-# provoke regeneration of all $(MAN) files.
-$(MAN): $(top_srcdir)/src/system.h
+# provoke regeneration of all the manpages.
+$(man1_MANS): $(top_srcdir)/src/system.h
.x.1:
$(AM_V_GEN)case '$(PERL)' in \