git-annex/Setup.hs
Joey Hess 468fecc315 Setup.hs: import configure
Rather than running make, which runs configure, let Setup.hs just include
the configure code. The standalone configure is retained for use by the
Makefile.

This may work better with cabal-dev, since it avoids the Makefile running
ghc, and lets cabal handle all the compiler running, with whatever
flags it uses to expose dependencies.
2012-03-10 14:00:26 -04:00

12 lines
258 B
Haskell

{- cabal setup file -}
import Distribution.Simple
import System.Cmd
import qualified Build.Configure as Configure
main = defaultMainWithHooks simpleUserHooks { preConf = configure }
configure _ _ = do
Configure.run Configure.tests
return (Nothing, [])