tech-toolchain archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
make: Graph cycles through ...
A trivial makefile (easily fixed - but that's beside the point):
--------------------8<--------------------
all: one
LIST = one two three four
two three four:
@echo $@
one: ${LIST}
@echo all for $@ and $@ for all
--------------------8<--------------------
$ make -f /homes/sjg/make-tests/cycle1
make: Graph cycles through one
two
three
four
`all' not remade because of errors.
$
By simply returning when the cycle is detected we get:
make: Graph cycles through one
two
three
four
all for one and one for all
$
which is similar to gmake:
gmake: Circular one <- one dependency dropped.
two
three
four
all for one and one for all
$
Home |
Main Index |
Thread Index |
Old Index