This is the mail archive of the automake@gnu.org mailing list for the automake project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: 3DLDF (fwd)


| 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




Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]