bug-make
[Top][All Lists]
Advanced

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

[bug #63362] make 4.4: different behavior with -j1 and -j2 when building


From: Paul D. Smith
Subject: [bug #63362] make 4.4: different behavior with -j1 and -j2 when building manpages from git
Date: Mon, 14 Nov 2022 08:15:54 -0500 (EST)

Follow-up Comment #1, bug #63362 (project make):

I am not sure why things behave differently between -j1 and -j2 I will have to
investigate it.  You can more easily determine what is going on if you invoke
make with the `--trace` option.

However, this rule seems wrong and always has been:

%.1 %.5 %.7 : %.xml manpage-base-url.xsl $(wildcard manpage*.xsl)
        $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<

To make this means that one invocation of that recipe for a file xyz.xml will
build ALL the targets xyz.1, xyz.5, and xyz.7.  Which, it does not do as best
as I can tell.

Possibly the author of the makefile thought that the above command is
equivalent to writing this:

%.1 : %.xml manpage-base-url.xsl $(wildcard manpage*.xsl)
        $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
%.5 : %.xml manpage-base-url.xsl $(wildcard manpage*.xsl)
        $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<
%.7 : %.xml manpage-base-url.xsl $(wildcard manpage*.xsl)
        $(QUIET_XMLTO)$(XMLTO) -m $(MANPAGE_XSL) $(XMLTO_EXTRA) man $<

but it is not the same thing; if you want three different rules you have to,
unfortunately, write them all out like that.  This is why you're seeing that
warning.  But I don't know that this has anything to do with why things are
being rebuilt.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?63362>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/




reply via email to

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