bug-cppi
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[bug-cppi] [PATCH 04/19] maint: man: use dist_man1_MANS, rather than dis


From: Jim Meyering
Subject: [bug-cppi] [PATCH 04/19] maint: man: use dist_man1_MANS, rather than dist_man_MANS
Date: Wed, 25 Jan 2012 09:22:41 +0100

From: Jim Meyering <address@hidden>

* man/Makefile.am: Doing that causes automake to generate
slightly better rules.
---
 man/Makefile.am |   13 ++++++-------
 1 files changed, 6 insertions(+), 7 deletions(-)

diff --git a/man/Makefile.am b/man/Makefile.am
index f3713a5..053bd30 100644
--- a/man/Makefile.am
+++ b/man/Makefile.am
@@ -1,9 +1,9 @@
 ## Process this file with automake to produce Makefile.in -*-Makefile-*-
-dist_man_MANS = cppi.1
+dist_man1_MANS = cppi.1

-man_aux = $(dist_man_MANS:.1=.x)
+man_aux = $(dist_man1_MANS:.1=.x)
 EXTRA_DIST = $(man_aux)
-MAINTAINERCLEANFILES = $(man_MANS)
+MAINTAINERCLEANFILES = $(dist_man1_MANS)

 # Depend on .version to get version number changes.
 common_dep = $(top_srcdir)/.version
@@ -27,13 +27,12 @@ check-local: check-x-vs-1 check-programs-vs-x
 ASSORT = LC_ALL=C sort

 # Ensure that for each .x file in this directory, there is a
-# corresponding .1 file in the definition of $(dist_man_MANS) above.
+# corresponding .1 file in the definition of $(dist_man1_MANS) above.
 .PHONY: check-x-vs-1
 check-x-vs-1:
-       $(AM_V_GEN)PATH=../src$(PATH_SEPARATOR)$$PATH; export PATH;     \
-       t=ls-files.$$$$;                                                \
+       $(AM_V_GEN)t=ls-files.$$$$;                                     \
        (cd $(srcdir) && ls -1 *.x) | sed 's/\.x$$//' | $(ASSORT) > $$t;\
-       echo $(dist_man_MANS) | fmt -w1 | sed 's/\.1$$//' | $(ASSORT)   \
+       echo $(dist_man1_MANS) | fmt -w1 | sed 's/\.1$$//' | $(ASSORT)  \
          | diff - $$t || { rm $$t; exit 1; };                          \
        rm $$t

-- 
1.7.9.rc2.2.g183d6




reply via email to

[Prev in Thread] Current Thread [Next in Thread]