
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.
12 lines
258 B
Haskell
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, [])
|