From: Jim Meyering Date: Fri, 31 Aug 2012 23:46:59 +0000 (+0200) Subject: maint: avoid distcheck failure by properly cleaning $(ALL_MANS) X-Git-Tag: v8.20~95 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0f95e5b0ecf5ad979df9cc7dff77cc82420c23e;p=thirdparty%2Fcoreutils.git maint: avoid distcheck failure by properly cleaning $(ALL_MANS) * 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". --- diff --git a/man/local.mk b/man/local.mk index 8904eb5a4c..e18533be5c 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 x$(srcdir) = x$(builddir) || rm -f $(ALL_MANS) + # Dependencies common to all man pages. Updated below. mandeps =