Source

iotransaction / Makefile

MODULE_NAME=IoTransaction
SRC=${MODULE_NAME}.hs ${MODULE_NAME}Test.hs

.PHONY : build
build : ${MODULE_NAME}Test

.PHONY : doc
doc : ${SRC}
	mkdir -p doc
	haddock -h -o doc ${MODULE_NAME}

${MODULE_NAME}Test : ${SRC}
	ghc $@

.PHONY : clean
clean :
	rm -rf ${MODULE_NAME}Test *.o *.hi doc