From 6b743222684f2b8151dfbdef42f0dc890e590c41 Mon Sep 17 00:00:00 2001 From: Stephen Paul Weber Date: Wed, 25 Apr 2012 17:19:07 -0500 Subject: Split OpenPGP.Crypto out into a seperate package --- Makefile | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 10f66fa..85dc9db 100644 --- a/Makefile +++ b/Makefile @@ -4,7 +4,7 @@ VERSION=0.3 .PHONY: all clean doc install debian test -all: sign verify keygen test report.html doc dist/build/libHSopenpgp-$(VERSION).a dist/openpgp-$(VERSION).tar.gz +all: test report.html doc dist/build/libHSopenpgp-$(VERSION).a dist/openpgp-$(VERSION).tar.gz install: dist/build/libHSopenpgp-$(VERSION).a cabal install @@ -14,20 +14,11 @@ debian: debian/control test: tests/suite tests/suite -sign: examples/sign.hs Data/*.hs Data/OpenPGP/*.hs +tests/suite: tests/suite.hs Data/OpenPGP.hs ghc --make $(GHCFLAGS) -o $@ $^ -verify: examples/verify.hs Data/*.hs Data/OpenPGP/*.hs - ghc --make $(GHCFLAGS) -o $@ $^ - -keygen: examples/keygen.hs Data/*.hs Data/OpenPGP/*.hs - ghc --make $(GHCFLAGS) -o $@ $^ - -tests/suite: tests/suite.hs Data/*.hs Data/OpenPGP/*.hs - ghc --make $(GHCFLAGS) -o $@ $^ - -report.html: examples/*.hs Data/*.hs Data/OpenPGP/*.hs tests/*.hs - -hlint $(HLINTFLAGS) --report Data examples +report.html: Data/OpenPGP.hs tests/suite.hs + -hlint $(HLINTFLAGS) --report $^ doc: dist/doc/html/openpgp/index.html README @@ -37,7 +28,7 @@ README: openpgp.cabal -printf ',s/ //g\n,s/^.$$//g\nw\nq\n' | ed $@ $(RM) .$@ -dist/doc/html/openpgp/index.html: dist/setup-config Data/OpenPGP.hs Data/OpenPGP/Crypto.hs +dist/doc/html/openpgp/index.html: dist/setup-config Data/OpenPGP.hs cabal haddock --hyperlink-source dist/setup-config: openpgp.cabal @@ -51,9 +42,9 @@ clean: debian/control: openpgp.cabal cabal-debian --update-debianization -dist/build/libHSopenpgp-$(VERSION).a: openpgp.cabal dist/setup-config Data/OpenPGP.hs Data/OpenPGP/Crypto.hs +dist/build/libHSopenpgp-$(VERSION).a: openpgp.cabal dist/setup-config Data/OpenPGP.hs cabal build --ghc-options="$(GHCFLAGS)" -dist/openpgp-$(VERSION).tar.gz: openpgp.cabal dist/setup-config Data/OpenPGP.hs Data/OpenPGP/Crypto.hs README +dist/openpgp-$(VERSION).tar.gz: openpgp.cabal dist/setup-config Data/OpenPGP.hs README cabal check cabal sdist -- cgit v1.2.3