Source

iotransaction / Makefile

Full commit
MODULE_NAME=iotransaction

.PHONY : build
build : ${MODULE_NAME}_test

.PHONY : doc
doc : src/Control/${MODULE_NAME}.hs
	mkdir -p doc
	haddock -h -o doc src/Control/${MODULE_NAME}.hs

${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 src/*.o src/Control/*.o src/*.hi src/Control/*.hi doc