X-Git-Url: https://git.cyclocoop.org/?p=tool%2Fhledger.git;a=blobdiff_plain;f=script%2FGNUmakefile;fp=script%2FGNUmakefile;h=5730e3b430ba8cb80a36d4b25271f6b7f81667c3;hp=0000000000000000000000000000000000000000;hb=707b0a621cd3c97d5d7e22e855272b3f865a2d56;hpb=30e9b83c521f5149836e1ef0b544676370721efe diff --git a/script/GNUmakefile b/script/GNUmakefile new file mode 100644 index 0000000..5730e3b --- /dev/null +++ b/script/GNUmakefile @@ -0,0 +1,13 @@ +hs=$(wildcard *.hs) + +all: $(hs:.hs=) + +c clean: \ + $(hs:.hs=.o/clean) \ + $(hs:.hs=.hi/clean) \ + $(hs:.hs=/clean) +%/clean: + $(if $(wildcard $*),rm -f "$*") + +%: %.hs + ghc $<