summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStephen Paul Weber <singpolyma@singpolyma.net>2012-04-15 12:35:00 -0500
committerStephen Paul Weber <singpolyma@singpolyma.net>2012-04-15 12:35:00 -0500
commit051e4b171782df1a384c3fc5763c69e35d9f46ba (patch)
tree7b29fa98f830adbff57cf1610f04d6ba624e7f8c /Makefile
parentb2801f2d422047a39a26e67fb218fe109c96dd9d (diff)
Debianize
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index b9bb082..60e88be 100644
--- a/Makefile
+++ b/Makefile
@@ -2,13 +2,15 @@ GHCFLAGS=-Wall -XNoCPP -fno-warn-name-shadowing -XHaskell98
2HLINTFLAGS=-XHaskell98 -XNoCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension' --utf8 2HLINTFLAGS=-XHaskell98 -XNoCPP -i 'Use camelCase' -i 'Use String' -i 'Use head' -i 'Use string literal' -i 'Use list comprehension' --utf8
3VERSION=0.3 3VERSION=0.3
4 4
5.PHONY: all clean doc install 5.PHONY: all clean doc install debian
6 6
7all: sign verify keygen report.html doc dist/build/libHSopenpgp-$(VERSION).a dist/openpgp-$(VERSION).tar.gz 7all: sign verify keygen 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
11 11
12debian: debian/control
13
12sign: examples/sign.hs Data/*.hs Data/OpenPGP/*.hs 14sign: 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
45debian/control: openpgp.cabal
46 cabal-debian --update-debianization
47
43dist/build/libHSopenpgp-$(VERSION).a: openpgp.cabal dist/setup-config Data/BaseConvert.hs Data/OpenPGP.hs Data/OpenPGP/Crypto.hs 48dist/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