| 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