|
From: | Peter Johansson |
Subject: | Re: Help2man and Parallel Make Race |
Date: | Tue, 20 Nov 2012 21:42:51 +1000 |
User-agent: | Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10.4; en-US; rv:1.9.2.28) Gecko/20120306 Thunderbird/3.1.20 |
On 11/20/12 8:44 AM, Neil T. Dantam wrote:
We decided we didn't wanted to ship (or require help2man), so when we converted to non-recursive Makefile, we solved this problem by added dependency> That's the route that GNU coreutils has taken recently; in the unlikely > case perl is absent on the the build system, dummy man-pages are > generated.This would also not work when cross-compiling, I think, since manpages would always be regenerated when the binaries are built and the cross-compiled binaries would not run on the build machine.
foo.1: foo$(EXEEXT)but this dependency is only turned on if foo.1 is not present (at configure time) or if '.svn' is present. The latter indicating that we are not building from a tarball. These conditions are checked at configure time and propagated to the makefile via an AM_CONDITIONAL.
I'm not 100% happy with this solution though because it creates a different dependency graph for maintainers and users similar to AM_MAINTAINER_MODE.
Cheers, Peter -- Peter Johansson
[Prev in Thread] | Current Thread | [Next in Thread] |