diff options
author | Stephen Paul Weber <singpolyma@singpolyma.net> | 2012-04-25 17:19:07 -0500 |
---|---|---|
committer | Stephen Paul Weber <singpolyma@singpolyma.net> | 2012-04-25 17:19:07 -0500 |
commit | 6b743222684f2b8151dfbdef42f0dc890e590c41 (patch) | |
tree | 77b5ae031d2b863f03399ba9a5b56ba4478d2ab2 /Makefile | |
parent | 7b3232778f284dd4dd3a6f3287bcbe1fbe10b010 (diff) |
Split OpenPGP.Crypto out into a seperate package
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 23 |
1 files changed, 7 insertions, 16 deletions
@@ -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 | ||
7 | all: sign verify keygen test report.html doc dist/build/libHSopenpgp-$(VERSION).a dist/openpgp-$(VERSION).tar.gz | 7 | all: test report.html doc dist/build/libHSopenpgp-$(VERSION).a dist/openpgp-$(VERSION).tar.gz |
8 | 8 | ||
9 | install: dist/build/libHSopenpgp-$(VERSION).a | 9 | install: dist/build/libHSopenpgp-$(VERSION).a |
10 | cabal install | 10 | cabal install |
@@ -14,20 +14,11 @@ debian: debian/control | |||
14 | test: tests/suite | 14 | test: tests/suite |
15 | tests/suite | 15 | tests/suite |
16 | 16 | ||
17 | sign: examples/sign.hs Data/*.hs Data/OpenPGP/*.hs | 17 | tests/suite: tests/suite.hs Data/OpenPGP.hs |
18 | ghc --make $(GHCFLAGS) -o $@ $^ | 18 | ghc --make $(GHCFLAGS) -o $@ $^ |
19 | 19 | ||
20 | verify: examples/verify.hs Data/*.hs Data/OpenPGP/*.hs | 20 | report.html: Data/OpenPGP.hs tests/suite.hs |
21 | ghc --make $(GHCFLAGS) -o $@ $^ | 21 | -hlint $(HLINTFLAGS) --report $^ |
22 | |||
23 | keygen: examples/keygen.hs Data/*.hs Data/OpenPGP/*.hs | ||
24 | ghc --make $(GHCFLAGS) -o $@ $^ | ||
25 | |||
26 | tests/suite: tests/suite.hs Data/*.hs Data/OpenPGP/*.hs | ||
27 | ghc --make $(GHCFLAGS) -o $@ $^ | ||
28 | |||
29 | report.html: examples/*.hs Data/*.hs Data/OpenPGP/*.hs tests/*.hs | ||
30 | -hlint $(HLINTFLAGS) --report Data examples | ||
31 | 22 | ||
32 | doc: dist/doc/html/openpgp/index.html README | 23 | doc: 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 | ||
40 | dist/doc/html/openpgp/index.html: dist/setup-config Data/OpenPGP.hs Data/OpenPGP/Crypto.hs | 31 | dist/doc/html/openpgp/index.html: dist/setup-config Data/OpenPGP.hs |
41 | cabal haddock --hyperlink-source | 32 | cabal haddock --hyperlink-source |
42 | 33 | ||
43 | dist/setup-config: openpgp.cabal | 34 | dist/setup-config: openpgp.cabal |
@@ -51,9 +42,9 @@ clean: | |||
51 | debian/control: openpgp.cabal | 42 | debian/control: openpgp.cabal |
52 | cabal-debian --update-debianization | 43 | cabal-debian --update-debianization |
53 | 44 | ||
54 | dist/build/libHSopenpgp-$(VERSION).a: openpgp.cabal dist/setup-config Data/OpenPGP.hs Data/OpenPGP/Crypto.hs | 45 | dist/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 | ||
57 | dist/openpgp-$(VERSION).tar.gz: openpgp.cabal dist/setup-config Data/OpenPGP.hs Data/OpenPGP/Crypto.hs README | 48 | dist/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 |