Commit a325521e authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Add buildPackageLibrary.

parent 91ecc023
......@@ -3,6 +3,7 @@ module Package (packageRules) where
import Package.Base
import Package.Data
import Package.Compile
import Package.Library
import Package.Dependencies
-- See Package.Base for definitions of basic types
......@@ -16,12 +17,13 @@ buildPackage :: Package -> TodoItem -> Rules ()
buildPackage = buildPackageData
<> buildPackageDependencies
<> buildPackageCompile
<> buildPackageLibrary
packageRules :: Rules ()
packageRules = do
-- TODO: control targets from commang line arguments
want [ "libraries/deepseq/dist-install/build/Control/DeepSeq.o"
, "libraries/deepseq/dist-install/build/Control/DeepSeq.p_o" ]
want [ "libraries/deepseq/dist-install/build/libHSdeeps_FT5iVCELxOr62eHY0nbvnU.a"
, "libraries/deepseq/dist-install/build/libHSdeeps_FT5iVCELxOr62eHY0nbvnU.p_a" ]
forM_ packages $ \pkg -> do
forM_ (pkgTodo pkg) $ \todoItem -> do
buildPackage pkg todoItem
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment