summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorStephen Paul Weber <singpolyma@singpolyma.net>2012-04-27 12:41:12 -0500
committerStephen Paul Weber <singpolyma@singpolyma.net>2012-04-27 12:41:12 -0500
commit2ed08625f7f56ab5c086498d47242299cff10e98 (patch)
tree71ffbdc9939f127184d6d74d85851ad3409257c0 /Makefile
parent11dcd91f565e298f2a51b13e5d5e2b4423079717 (diff)
patch cleaner than ed
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 3 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 105780e..2d79bed 100644
--- a/Makefile
+++ b/Makefile
@@ -22,11 +22,9 @@ test: tests/suite
22tests/suite: tests/suite.hs Data/OpenPGP.hs Data/OpenPGP/Internal.hs Data/OpenPGP/Arbitrary.hs 22tests/suite: tests/suite.hs Data/OpenPGP.hs Data/OpenPGP/Internal.hs Data/OpenPGP/Arbitrary.hs
23 ghc --make $(GHCFLAGS) -o $@ $^ 23 ghc --make $(GHCFLAGS) -o $@ $^
24 24
25Data/OpenPGP/Arbitrary.hs: Data/OpenPGP.hs 25Data/OpenPGP/Arbitrary.hs: Data/OpenPGP.hs Arbitrary.patch
26 derive -d Arbitrary -m Data.OpenPGP.Arbitrary -iData.OpenPGP -iTest.QuickCheck -iTest.QuickCheck.Instances -iNumeric -iData.Char -iData.Word -o $@ $^ 26 derive -d Arbitrary -m Data.OpenPGP.Arbitrary -iData.OpenPGP -iTest.QuickCheck -iTest.QuickCheck.Instances -iNumeric -iData.Char -iData.Word -o $@ Data/OpenPGP.hs
27 -printf ',s/SignaturePacket x1 x2 x3 x4 x5 x6 x7 x8 x9)$$/signaturePacket x1 x2 x3 x4 x5 x6 x7 x8)/g\n/signaturePacket/\n-d\nw\nq\n' | ed $@ 27 patch $@ Arbitrary.patch
28 -printf '/return (IssuerPacket/\n-d\ni\n 4 -> do x1 <- fmap (map toUpper . (`showHex` "")) (arbitrary :: Gen Word64)\n.\nw\nq\n' | ed $@
29 -printf '/return (UnsupportedSignatureSubpacket/\n-d\n.s/x1/105/g\n.s/x2/x1/g\nw\nq\n' | ed $@
30 28
31report.html: tests/suite.hs Data/OpenPGP.hs Data/OpenPGP/Internal.hs 29report.html: tests/suite.hs Data/OpenPGP.hs Data/OpenPGP/Internal.hs
32 -hlint $(HLINTFLAGS) --report $^ 30 -hlint $(HLINTFLAGS) --report $^