"Paul D. Smith" <[EMAIL PROTECTED]> writes:
> There is an order of magnitude difference between the suggestions you
> give here and what make currently does, and that is that all the ideas
> you give here require state to be stored. Make is currently stateless:
> it has no knowledge of when (or even if) it was ever run before and if
> it was, what happened then.
>
> In order to implement _ANY_ more advanced out-of-dateness condition than
> what we have now, make would first have to be enhanced to be stateful.
I thought we already can do something very close to this:
.SUFFIXES:
MAKEFLAGS += -r
foo.o: foo.c
%.o: %.c.md5
$(CC) -o $@ -c $(<:.md5=)
%.c.md5: %.c
@md5sum $< | cmp -s $@ -; if test $$? -ne 0; then md5sum $< > $@; fi
.PRECIOUS: %.c.md5
And it looks very similar to how automatic dependency generation works.
The advantage of this approach is that you can implement whatever out-
dateness logic one could imagine.
any comments?
-boris
_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make