summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStephen Paul Weber <singpolyma@singpolyma.net>2011-08-09 22:54:32 -0500
committerStephen Paul Weber <singpolyma@singpolyma.net>2011-08-09 22:54:32 -0500
commitc6d2154588ac13374d570f498dc5c8dc7c5f4036 (patch)
tree86c2c584bbb96de1e28e1f03a47f2ef2b72727d7 /Makefile
parenta4b22e4d7606699f6b10238aa245fa53be339d3e (diff)
README update
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 938b8c2..b2e6829 100644
--- a/Makefile
+++ b/Makefile
@@ -3,7 +3,7 @@ HLINTFLAGS=-XHaskell98 -XNoCPP -i 'Use camelCase' -i 'Use String' -i 'Use head'
3 3
4.PHONY: all cleas 4.PHONY: all cleas
5 5
6all: verify report.html 6all: verify report.html README
7 7
8verify: examples/verify.hs 8verify: examples/verify.hs
9 ghc --make $(GHCFLAGS) -o $@ $^ 9 ghc --make $(GHCFLAGS) -o $@ $^
@@ -11,6 +11,12 @@ verify: examples/verify.hs
11report.html: 11report.html:
12 hlint $(HLINTFLAGS) --report Data examples 12 hlint $(HLINTFLAGS) --report Data examples
13 13
14README: openpgp.cabal
15 tail -n+$$(( `grep -n ^description: $^ | head -n1 | cut -d: -f1` + 1 )) $^ > .$@
16 head -n+$$(( `grep -n ^$$ .$@ | head -n1 | cut -d: -f1` - 1 )) .$@ > $@
17 printf ',s/ //g\n,s/^.$$//g\nw\nq\n' | ed $@
18 $(RM) .$@
19
14clean: 20clean:
15 find -name '*.o' -o -name '*.hi' | xargs $(RM) 21 find -name '*.o' -o -name '*.hi' | xargs $(RM)
16 $(RM) verify 22 $(RM) verify