[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 14/22] build: simplify: get rid of yet some more indirection vari
From: |
Stefano Lattarini |
Subject: |
[PATCH 14/22] build: simplify: get rid of yet some more indirection variables |
Date: |
Sat, 1 Sep 2012 01:46:51 +0200 |
* configure.ac: Adjust and improve few comments.
(MAN): Rename ...
(man1_MANS): ... like this.
Ensure it's aren'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@'.
---
configure.ac | 9 +++++----
man/local.mk | 6 +++---
2 files changed, 8 insertions(+), 7 deletions(-)
diff --git a/configure.ac b/configure.ac
index 5c3592b..99f293a 100644
--- a/configure.ac
+++ b/configure.ac
@@ -422,9 +422,9 @@ case " $optional_bin_progs " in
*' stdbuf '*) gl_ADD_PROG([optional_pkglib_progs], [libstdbuf.so]) ;;
esac
-MAN=`
+man1_MANS=`
for p in $optional_bin_progs; do
- # Change "ginstall.1" to "install.1" in $MAN.
+ # Change "ginstall.1" to "install.1".
test $p = ginstall && p=install
# Ignore the "[" program, since writing a portable make rule to
# generate its manpage is not practical.
@@ -448,14 +448,15 @@ pkglibexec_PROGRAMS=`
for p in $optional_pkglib_progs; do echo src/$p; done`
# Normalize whitespace.
-MAN=`echo $MAN`
+man1_MANS=`echo $man1_MANS`
EXTRA_MANS=`echo $EXTRA_MANS`
bin_PROGRAMS=`echo $bin_PROGRAMS`
pkglibexec_PROGS=`echo $pkglibexec_PROGRAMS`
AC_SUBST([bin_PROGRAMS]) AM_SUBST_NOTMAKE([bin_PROGRAMS])
AC_SUBST([pkglibexec_PROGRAMS]) AM_SUBST_NOTMAKE([pkglibexec_PROGRAMS])
-AC_SUBST([EXTRA_MANS])
+AC_SUBST([man1_MANS]) AM_SUBST_NOTMAKE([man1_MANS])
+AC_SUBST([EXTRA_MANS]) AM_SUBST_NOTMAKE([EXTRA_MANS])
AM_CONDITIONAL([CROSS_COMPILING], [test "$cross_compiling" = yes])
diff --git a/man/local.mk b/man/local.mk
index 5e89829..99eb215 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 \
--
1.7.12
- [PATCH 05/22] maint: improve remake rules for maintainers, (continued)
- [PATCH 05/22] maint: improve remake rules for maintainers, Stefano Lattarini, 2012/08/31
- [PATCH 06/22] maint: remove unused target 'install-root', Stefano Lattarini, 2012/08/31
- [PATCH 07/22] maint: fix and simplify maintainer checks, Stefano Lattarini, 2012/08/31
- [PATCH 09/22] maint: update gitignore entries, Stefano Lattarini, 2012/08/31
- [PATCH 08/22] maint: fix one stray reference to src/Makefile.am, Stefano Lattarini, 2012/08/31
- [PATCH 03/22] build: don't use recursive make to build the 'src' subdirectory, Stefano Lattarini, 2012/08/31
- [PATCH 10/22] build: simplify: get rid of some indirection variables, Stefano Lattarini, 2012/08/31
- [PATCH 12/22] build: one less unneeded make variable, Stefano Lattarini, 2012/08/31
- [PATCH 11/22] build: simplify and make more portable to non-GNU make, Stefano Lattarini, 2012/08/31
- [PATCH 13/22] build: rename dist_man1_MANS -> man1_MANS, Stefano Lattarini, 2012/08/31
- [PATCH 14/22] build: simplify: get rid of yet some more indirection variables,
Stefano Lattarini <=
- [PATCH 15/22] build: enhance man pages cleaning and dependencies, Stefano Lattarini, 2012/08/31
- [PATCH 16/22] build: $(mandeps): new, factors out man pages dependencies, Stefano Lattarini, 2012/08/31
- [PATCH 17/22] maint: simplify declaration of "libexec" programs, Stefano Lattarini, 2012/08/31
- [PATCH 18/22] maint: typofix in comments, Stefano Lattarini, 2012/08/31
- [PATCH 19/22] maint: fix quoting problem in configure.ac, Stefano Lattarini, 2012/08/31
- [PATCH 20/22] build: fix VPATH issues in C compilation, Stefano Lattarini, 2012/08/31
- [PATCH 22/22] maint: avoid distcheck failure by properly cleaning $(EXTRA_MANS), Stefano Lattarini, 2012/08/31
- [PATCH 21/22] maint: port manpages generation to VPATH builds, Stefano Lattarini, 2012/08/31