autoconf-patches
[Top][All Lists]
Advanced

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

Re: Fix building autoconf.1


From: Paul Eggert
Subject: Re: Fix building autoconf.1
Date: Mon, 31 Jan 2005 15:27:37 -0800
User-agent: Gnus/5.1006 (Gnus v5.10.6) Emacs/21.3 (gnu/linux)

Thanks.  That patch is a little terse about what it does, due to the
'@'s in it.  I installed the following instead, to try to make it a
bit easier to follow, from the point of view of the person running
'make'.  The idea is to use '@' to compute the command to be run, but
avoid '@' when actually running the command.

2005-01-31  Paul Eggert  <address@hidden>

        * man/Makefile.am (.x.1): Make sure the required generated files
        are up to date.  Problem and original solution proposed by Stepan Kasal.
        $(dist_man_MANS:.1=-bin-prereq), $(dist_man_MANS:.1=-tests-prereq),
        implicit-man-prerequisites): New rules, used by the above.

--- man/Makefile.am     29 Dec 2004 06:54:44 -0000      1.20
+++ man/Makefile.am     31 Jan 2005 23:25:08 -0000      1.21
@@ -50,6 +50,10 @@ $(srcdir)/config.sub.1:   $(top_srcdir)/
 SUFFIXES = .x .1
 
 .x.1:
+       @case $* in \
+         */config.*) ;; \
+         *) $(MAKE) $*-bin-prereq $*-tests-prereq;; \
+       esac
        echo "Updating man page $@"
        
PATH="$(top_builddir)/address@hidden@$(top_srcdir)/address@hidden@$$PATH"; \
        export PATH; \
@@ -57,3 +61,18 @@ SUFFIXES = .x .1
            --include=$*.x \
            --include=$(srcdir)/common.x \
            --output=$@ `echo "$*" | sed 's,^$(srcdir)/,,'`
+
+
+# While building man page prerequisites, avoid explicit dependencies
+# on any file that is not distributed, so that installers do not
+# unnecessarily attempt to run $(HELP2MAN), a tool that they may not
+# have.
+
+$(dist_man_MANS:.1=-bin-prereq) $(dist_man_MANS:.1=-tests-prereq):
+       @$(MAKE) $(AM_MAKEFLAGS) \
+         builddir=$(top_builddir)/`expr 'X$@' : '.*-\([^-]*\)-prereq$$'` \
+         program=`expr '/$@' : '.*/\([^-]*\)'` \
+         implicit-man-prerequisites
+
+implicit-man-prerequisites:
+       cd $(builddir) && $(MAKE) $(AM_MAKEFLAGS) $(program)




reply via email to

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