diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -2,13 +2,15 @@ GHCFLAGS=-Wall -XNoCPP -fno-warn-name-shadowing -XHaskell98 | |||
2 | HLINTFLAGS=-XHaskell98 -XNoCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension' --utf8 | 2 | HLINTFLAGS=-XHaskell98 -XNoCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension' --utf8 |
3 | VERSION=0.3 | 3 | VERSION=0.3 |
4 | 4 | ||
5 | .PHONY: all clean doc install | 5 | .PHONY: all clean doc install debian |
6 | 6 | ||
7 | all: sign verify keygen report.html doc dist/build/libHSopenpgp-$(VERSION).a dist/openpgp-$(VERSION).tar.gz | 7 | all: sign verify keygen 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 |
11 | 11 | ||
12 | debian: debian/control | ||
13 | |||
12 | sign: examples/sign.hs Data/*.hs Data/OpenPGP/*.hs | 14 | sign: examples/sign.hs Data/*.hs Data/OpenPGP/*.hs |
13 | ghc --make $(GHCFLAGS) -o $@ $^ | 15 | ghc --make $(GHCFLAGS) -o $@ $^ |
14 | 16 | ||
@@ -40,6 +42,9 @@ clean: | |||
40 | $(RM) sign verify | 42 | $(RM) sign verify |
41 | $(RM) -r dist | 43 | $(RM) -r dist |
42 | 44 | ||
45 | debian/control: openpgp.cabal | ||
46 | cabal-debian --update-debianization | ||
47 | |||
43 | dist/build/libHSopenpgp-$(VERSION).a: openpgp.cabal dist/setup-config Data/BaseConvert.hs Data/OpenPGP.hs Data/OpenPGP/Crypto.hs | 48 | dist/build/libHSopenpgp-$(VERSION).a: openpgp.cabal dist/setup-config Data/BaseConvert.hs Data/OpenPGP.hs Data/OpenPGP/Crypto.hs |
44 | cabal build | 49 | cabal build |
45 | 50 | ||