dépôts
/
tool
/
hledger.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
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
+++ 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 $<