[Top][All Lists]

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

Re: extending automake

From: Ralf Wildenhues
Subject: Re: extending automake
Date: Sat, 19 Apr 2008 11:05:40 +0200
User-agent: Mutt/1.5.17+20080114 (2008-01-14)

Hi Bob, Brian,

* Brian Dessent wrote on Sat, Apr 19, 2008 at 06:23:59AM CEST:
> Method B, not GNU make specific, using a single witness stamp along the
> lines of what is suggested in the manual:
> pyxml-stamp: $(PYXMLFILES)
>       @rm -f pyxml-tmp
>       @touch pyxml-tmp
>       (set -e; for F in $<; do \
>         python $(abs_top_srcdir)/ $$F; \
>         done)
>       @mv -f pyxml-tmp $@
> Notes:
>  - This should be parallel-make safe due to the single stamp file,
> except for the contrived situation mentioned in the manual where one or
> more generated file is removed without also removing the stamp.
>  - But also due to a single stamp file representing all .xml files,
> parallel make won't be able to run multiple python invocations in
> parallel, and if one .xml file is modified they will all be regenerated.

Well, this scheme can easily be generalized to one stamp file per set of
output files, no?  And then it parallelizes well, too.


reply via email to

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