git-annex/Setup.hs
Joey Hess 56aeeb4565 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.
2011-06-30 14:55:03 -04:00

17 lines
288 B
Haskell

{- 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 ()