From 08466b8f89f8468674640ee0691528b66358fe7c Mon Sep 17 00:00:00 2001 From: Stefano Lattarini Date: Sat, 1 Sep 2012 01:46:41 +0200 Subject: build: fix generation of manpages for programs not built by default * src/local.mk (dist-hook): Don't use this to ensure all the programs, even the ones disabled by default or by the user, are built (doing so is required to ensure the distributed manpages are properly built). This would build those programs too late anyway, causing errors like: $ make dist make dist-xz am__post_remove_distdir='@:' make[1]: Entering directory `~/src/coreutils' GEN man/arch.1 help2man: can't get '--help' info from man/arch.td/arch make[1]: *** [man/arch.1] Error 127 make[1]: Leaving directory `~/src/coreutils' make: *** [dist] Error 2 Instead, ... * man/local.mk (extra_man_x, extra_man_1): define these ... ($(extra_man_1)): ... and make this depend on $(all_programs). (EXTRA_DIST): Adjust. Adjust some comments as well. --- src/local.mk | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src') diff --git a/src/local.mk b/src/local.mk index 45a6268e2..24462009f 100644 --- a/src/local.mk +++ b/src/local.mk @@ -495,11 +495,6 @@ all_programs.list: | sed /libstdbuf/d \ | $(ASSORT) -u -# This is required because we have broken inter-directory dependencies: -# in order to generate all man pages, even those for which we don't -# install a binary, require that all programs be built at distribution time. -dist-hook: $(all_programs) - pm = progs-makefile pr = progs-readme # Ensure that the list of programs in README matches the list -- cgit v1.2.3-70-g09d2