]> git.ipfire.org Git - thirdparty/libtool.git/commitdiff
maint: don't run help2man on programs not-yet-built. libtool-next
authorGary V. Vaughan <gary@gnu.org>
Fri, 24 Sep 2010 21:18:04 +0000 (04:18 +0700)
committerGary V. Vaughan <gary@vaughan.pe>
Sun, 14 Aug 2011 22:25:37 +0000 (05:25 +0700)
* Makefile.am (doc/libtool.1, doc/libtoolize.1): Added a
comment about why the dependencies here have to be a mite
bizarre.
(distcheck): Added a workaround for the bug described.

Signed-off-by: Gary V. Vaughan <gary@gnu.org>
ChangeLog
Makefile.am

index 2f1621d6a335c5b7205df2294bf49f5311b8dec0..a9bc65d50ada49cb6ce72b664aee0fc077486e31 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2010-09-01  Gary V. Vaughan  <gary@gnu.org>
+
+       maint: don't run help2man on programs not-yet-built.
+       * Makefile.am (doc/libtool.1, doc/libtoolize.1): Added a
+       comment about why the dependencies here have to be a mite
+       bizarre.
+       (distcheck): Added a workaround for the bug described.
+
 2010-09-26  Gary V. Vaughan  <gary@gnu.org>
 
        tests: remove unused `aux_dir' variable from `getopt-m4sh.test'.
index f06eb844e6a6ba69646f5319de7bb82a5223880a..0ad4de3cd7be55d798cc1781f21d42e33701e0cc 100644 (file)
@@ -394,10 +394,21 @@ MAINTAINERCLEANFILES      += $(dist_man1_MANS)
 update_mans = \
   PATH=.$(PATH_SEPARATOR)$$PATH; export PATH; \
   $(HELP2MAN) --output='$@'
+
+# It's wrong to make distributed files (e.g. $(libtool_1)) rely on
+# files created in the build tree, so instead we regenerate the
+# manual pages if the sources for the build-tree files we want to
+# run have changed.
 $(libtool_1): $(ltmain_sh)
        $(update_mans) --help-option=--help-all libtool
 $(libtoolize_1): $(libtoolize_in)
        $(update_mans) libtoolize
+# That doesn't solve the problem of having `make' try to create
+# manual pages before the commands have been built, for example
+# with automake-1.11.1, `make distcheck' in a freshly checked out
+# and configured tree will fail.  The workaround is to make sure
+# `make check' is always called first:
+distcheck: all
 
 
 ## ------------- ##