Ajout : rangement.
[tool/hledger.git] / script / GNUmakefile
diff --git a/script/GNUmakefile b/script/GNUmakefile
new file mode 100644 (file)
index 0000000..5730e3b
--- /dev/null
@@ -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 $<