automake
[Top][All Lists]
Advanced

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

Re: 3DLDF (fwd)


From: Alexandre Duret-Lutz
Subject: Re: 3DLDF (fwd)
Date: Sun, 16 Nov 2003 19:11:30 +0100
User-agent: Gnus/5.1003 (Gnus v5.10.3) Emacs/21.3 (gnu/linux)

| Another possibility is to use a stamp file to represent the
| output of the tool.  (Above parser.c was used for this purpose.)
| 
|   .web.wstamp:
|           $(CTANGLE) $<  # Or whatever the syntax is.

Oops.  This rule should obviously create the stamp file too.
Furthermore, it's preferable that the stamp files be older than
the real output files, so that the .wstamp.h and .wstamp.c are
not triggered uselessly.  For instance

   .web.wstamp:
           : > t-$@
           $(CTANGLE) $<  # Or whatever the syntax is.
           mv t-$@ $@

|   .wstamp.h:
|   ## Recover from the removal of $@
|           @if test -f $@; then : else \
|              rm -f $<; \
|              $(MAKE) $<; \
|           fi
| 
|   .wstamp.c:
|   ## Recover from the removal of $@
|           @if test -f $@; then : else \
|              rm -f $<; \
|              $(MAKE) $<; \
|           fi
-- 
Alexandre Duret-Lutz





reply via email to

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