build/pymake/tests/remake-mtime.mk

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/build/pymake/tests/remake-mtime.mk	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,14 @@
     1.4 +# mtime(dep1) < mtime(target) so the target should not be made
     1.5 +$(shell touch dep1; sleep 1; touch target)
     1.6 +
     1.7 +all: target
     1.8 +	echo TEST-PASS
     1.9 +
    1.10 +target: dep1
    1.11 +	echo TEST-FAIL target should not have been made
    1.12 +
    1.13 +dep1: dep2
    1.14 +	@echo "Remaking dep1 (actually not)"
    1.15 +
    1.16 +dep2:
    1.17 +	@echo "Making dep2 (actually not)"

mercurial