Here's what I have so far related to the Mage build tool.
[mgear/mgear.git] / experiments / precious.mk
1 all: bar baz
2
3 .DELETE_ON_ERROR:
4
5 .PRECIOUS: %.g
6
7 .SECONDEXPANSION:
8
9 %: %.g
10         # updating $@
11         # the error occurs HERE!  do we delete $@?
12         $(info echo bing\
13         echo bong)
14         false
15
16 %.g: %.in
17         # updating $@
18         touch $*.g
19         touch $*
20
21 %: %.in2
22         # updating baz
23         touch $@
24         false