From 56aeeb4565dd419c315d370f6e648abfe009a7d3 Mon Sep 17 00:00:00 2001 From: Joey Hess Date: Thu, 30 Jun 2011 14:55:03 -0400 Subject: cabal can now be used to build git-annex. This is substantially slower than using make, does not build or install documentation, does not run the test suite, and is not particularly recommended, but could be useful to some. --- Setup.hs | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Setup.hs (limited to 'Setup.hs') diff --git a/Setup.hs b/Setup.hs new file mode 100644 index 000000000..547d6a156 --- /dev/null +++ b/Setup.hs @@ -0,0 +1,17 @@ +{- cabal setup file -} + +import Distribution.Simple +import System.Cmd + +main = defaultMainWithHooks simpleUserHooks { + preConf = makeSources, + postClean = makeClean +} + +makeSources _ _ = do + system "make sources" + return (Nothing, []) + +makeClean _ _ _ _ = do + system "make clean" + return () -- cgit v1.2.3