[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH 22/22] maint: avoid distcheck failure by properly cleaning $(EXTR
From: |
Stefano Lattarini |
Subject: |
[PATCH 22/22] maint: avoid distcheck failure by properly cleaning $(EXTRA_MANS) |
Date: |
Sat, 1 Sep 2012 01:46:59 +0200 |
From: Jim Meyering <address@hidden>
* man/local.mk (distclean-local): Remove $(ALL_MANS) when doing
a VPATH build. If it's not done, generated manpages can be left
around in the build directory after a "make distclean", causing
failures in "make distcheck".
---
man/local.mk | 5 +++++
1 file changed, 5 insertions(+)
diff --git a/man/local.mk b/man/local.mk
index 8904eb5..da7de24 100644
--- a/man/local.mk
+++ b/man/local.mk
@@ -35,6 +35,11 @@ MAINTAINERCLEANFILES += $(ALL_MANS)
# the manpages must be generated before the distdir is created and filled.
$(EXTRA_MANS): $(all_programs)
+# This is a kludge to remove generated 'man/*.1' from a non-srcdir build.
+# Without this, "make distcheck" might fail.
+distclean-local:
+ test $(srcdir) = x$(builddir) || rm -f $(ALL_MANS)
+
# Dependencies common to all man pages. Updated below.
mandeps =
--
1.7.12
- [PATCH 12/22] build: one less unneeded make variable, (continued)
- [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, 2012/08/31
- [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 <=
- [PATCH 21/22] maint: port manpages generation to VPATH builds, Stefano Lattarini, 2012/08/31