summaryrefslogtreecommitdiff
path: root/Setup.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2011-06-30 14:55:03 -0400
committerGravatar Joey Hess <joey@kitenet.net>2011-06-30 14:55:03 -0400
commit56aeeb4565dd419c315d370f6e648abfe009a7d3 (patch)
tree224bbf233bc99bd1ac8584dd0ec1b3838de8e920 /Setup.hs
parentb3aaf980e460c2287fc1ef2b262685b1879e6ed0 (diff)
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.
Diffstat (limited to 'Setup.hs')
-rw-r--r--Setup.hs17
1 files changed, 17 insertions, 0 deletions
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 ()