Commits

C. Dylan Shearer committed 51b348e

Changes to account for changed file names.

Comments (0)

Files changed (1)

-MODULE_NAME=IoTransaction
-SRC=${MODULE_NAME}.hs ${MODULE_NAME}Test.hs
+MODULE_NAME=iotransaction
 
 .PHONY : build
-build : ${MODULE_NAME}Test
+build : ${MODULE_NAME}_test
 
 .PHONY : doc
-doc : ${SRC}
+doc : src/Control/${MODULE_NAME}.hs
 	mkdir -p doc
-	haddock -h -o doc ${MODULE_NAME}
+	haddock -h -o doc src/Control/${MODULE_NAME}.hs
 
-${MODULE_NAME}Test : ${SRC}
-	ghc $@
+${MODULE_NAME}_test : src/Control/${MODULE_NAME}.hs src/${MODULE_NAME}_test.hs
+	ghc -o $@ $^
 
 .PHONY : all
 all : build doc
 
 .PHONY : clean
 clean :
-	rm -rf ${MODULE_NAME}Test *.o *.hi doc
+	rm -rf ${MODULE_NAME}_test src/*.o src/Control/*.o src/*.hi src/Control/*.hi doc