Improve manual makefile for tests.
authorMilan Straka <fox@ucw.cz>
Tue, 24 Apr 2012 16:05:40 +0000 (18:05 +0200)
committerMilan Straka <fox@ucw.cz>
Tue, 24 Apr 2012 16:05:40 +0000 (18:05 +0200)
Leave dependencies on GHC instead of make.

tests/Makefile

index 001949c..5af8ff3 100644 (file)
@@ -1,11 +1,13 @@
 all:
 
-%-properties: %-properties.hs ../Data/*.hs ../Data/*/*.hs
+%-properties: %-properties.hs force
        ghc -O2 -DTESTING $< -i.. -o $@ -outputdir tmp
 
-%-strict-properties: %-properties.hs
+%-strict-properties: %-properties.hs force
        ghc -O2 -DTESTING -DSTRICT $< -o $@ -i.. -outputdir tmp
 
-.PHONY: clean
+.PHONY: force clean
+force:
+
 clean:
        rm -rf tmp $(patsubst %.hs, %, $(wildcard *-properties.hs)) $(patsubst %-properties.hs, %-strict-properties, $(wildcard *-properties.hs))