summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStephen Paul Weber <singpolyma@singpolyma.net>2012-04-25 17:19:07 -0500
committerStephen Paul Weber <singpolyma@singpolyma.net>2012-04-25 17:19:07 -0500
commit6b743222684f2b8151dfbdef42f0dc890e590c41 (patch)
tree77b5ae031d2b863f03399ba9a5b56ba4478d2ab2 /Makefile
parent7b3232778f284dd4dd3a6f3287bcbe1fbe10b010 (diff)
Split OpenPGP.Crypto out into a seperate package
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile23
1 files changed, 7 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 10f66fa..85dc9db 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@ VERSION=0.3
4 4
5.PHONY: all clean doc install debian test 5.PHONY: all clean doc install debian test
6 6
7all: sign verify keygen test report.html doc dist/build/libHSopenpgp-$(VERSION).a dist/openpgp-$(VERSION).tar.gz 7all: test report.html doc dist/build/libHSopenpgp-$(VERSION).a dist/openpgp-$(VERSION).tar.gz
8 8
9install: dist/build/libHSopenpgp-$(VERSION).a 9install: dist/build/libHSopenpgp-$(VERSION).a
10 cabal install 10 cabal install
@@ -14,20 +14,11 @@ debian: debian/control
14test: tests/suite 14test: tests/suite
15 tests/suite 15 tests/suite
16 16
17sign: examples/sign.hs Data/*.hs Data/OpenPGP/*.hs 17tests/suite: tests/suite.hs Data/OpenPGP.hs
18 ghc --make $(GHCFLAGS) -o $@ $^ 18 ghc --make $(GHCFLAGS) -o $@ $^
19 19
20verify: examples/verify.hs Data/*.hs Data/OpenPGP/*.hs 20report.html: Data/OpenPGP.hs tests/suite.hs
21 ghc --make $(GHCFLAGS) -o $@ $^ 21 -hlint $(HLINTFLAGS) --report $^
22
23keygen: examples/keygen.hs Data/*.hs Data/OpenPGP/*.hs
24 ghc --make $(GHCFLAGS) -o $@ $^
25
26tests/suite: tests/suite.hs Data/*.hs Data/OpenPGP/*.hs
27 ghc --make $(GHCFLAGS) -o $@ $^
28
29report.html: examples/*.hs Data/*.hs Data/OpenPGP/*.hs tests/*.hs
30 -hlint $(HLINTFLAGS) --report Data examples
31 22
32doc: dist/doc/html/openpgp/index.html README 23doc: dist/doc/html/openpgp/index.html README
33 24
@@ -37,7 +28,7 @@ README: openpgp.cabal
37 -printf ',s/ //g\n,s/^.$$//g\nw\nq\n' | ed $@ 28 -printf ',s/ //g\n,s/^.$$//g\nw\nq\n' | ed $@
38 $(RM) .$@ 29 $(RM) .$@
39 30
40dist/doc/html/openpgp/index.html: dist/setup-config Data/OpenPGP.hs Data/OpenPGP/Crypto.hs 31dist/doc/html/openpgp/index.html: dist/setup-config Data/OpenPGP.hs
41 cabal haddock --hyperlink-source 32 cabal haddock --hyperlink-source
42 33
43dist/setup-config: openpgp.cabal 34dist/setup-config: openpgp.cabal
@@ -51,9 +42,9 @@ clean:
51debian/control: openpgp.cabal 42debian/control: openpgp.cabal
52 cabal-debian --update-debianization 43 cabal-debian --update-debianization
53 44
54dist/build/libHSopenpgp-$(VERSION).a: openpgp.cabal dist/setup-config Data/OpenPGP.hs Data/OpenPGP/Crypto.hs 45dist/build/libHSopenpgp-$(VERSION).a: openpgp.cabal dist/setup-config Data/OpenPGP.hs
55 cabal build --ghc-options="$(GHCFLAGS)" 46 cabal build --ghc-options="$(GHCFLAGS)"
56 47
57dist/openpgp-$(VERSION).tar.gz: openpgp.cabal dist/setup-config Data/OpenPGP.hs Data/OpenPGP/Crypto.hs README 48dist/openpgp-$(VERSION).tar.gz: openpgp.cabal dist/setup-config Data/OpenPGP.hs README
58 cabal check 49 cabal check
59 cabal sdist 50 cabal sdist