build/pymake/tests/doublecolon-exists.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build/pymake/tests/doublecolon-exists.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,16 @@
     1.4 +$(shell touch foo.testfile1 foo.testfile2)
     1.5 +
     1.6 +# when a rule has commands and no prerequisites, should it be executed?
     1.7 +# double-colon: yes
     1.8 +# single-colon: no
     1.9 +
    1.10 +all: foo.testfile1 foo.testfile2
    1.11 +	test "$$(cat foo.testfile1)" = ""
    1.12 +	test "$$(cat foo.testfile2)" = "remade:foo.testfile2"
    1.13 +	@echo TEST-PASS
    1.14 +
    1.15 +foo.testfile1:
    1.16 +	@echo TEST-FAIL
    1.17 +
    1.18 +foo.testfile2::
    1.19 +	printf "remade:$@"> $@

mercurial