Make.hs 491 Bytes
Newer Older
1 2
module Settings.Builders.Make (makeBuilderArgs) where

3
import Base
4
import Predicate
5 6 7
import Settings

makeBuilderArgs :: Args
8 9 10 11 12 13
makeBuilderArgs = do
    threads <- shakeThreads <$> lift getShakeOptions
    let j = "-j" ++ show threads
    mconcat
        [ builder (Make gmpBuildPath     ) ? append ["MAKEFLAGS=" ++ j]
        , builder (Make libffiBuildPath  ) ? append ["MAKEFLAGS=" ++ j, "install"]
14
        , builder (Make "testsuite/tests") ? append ["THREADS=" ++ show threads, "fast"]  ]