Hi,

I am posting this to bug-make and help-make because I think it is a
problem with make which needs fixing but would like to feedback.

The attached makefile when run repeatedly sometimes rebuilds module
and sometimes doesn't.

This is the only way I can see to have a phony target where other
targets are rebuilt due to the fact that it has been rebuilt.

Even splitting the goal rule into two separate calls to make for
timestamp and module doesn't work (but it helps a nit I think). This
worries me because it just sounds like a delay in the file being
written and the timestamps being updated and could mean that all sorts
of things break. Presumably this sort of thing is not normally a
problem because make assumes that a target that is rebuilt is newer
than anything else.

Platform is RedHat Linux 6.0 running on Pentium II and make versions
3.77 and 3.78.1 exhibit this problem.

TIA,
Simon

-----------------------------------------------------------------------
| Simon Liddington                   | Tel (home) : 01703 237935      |
| E-Mail : [EMAIL PROTECTED]            | Tel (work) : 01420 544952      |
-----------------------------------------------------------------------
goal:
        $(MAKE) timestamp module

.PHONY: timestamp

timestamp:
        touch module.dependency

module: module.dependency
        touch module

Reply via email to