Commit 5a4b1726 authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Track build rule source files initiating incremental rebuilds when code changes.

parent 04cbcbc9
......@@ -56,6 +56,7 @@ buildPackageData pkg @ (Package name path _) (stage, dist, settings) =
"build" </> "autogen" </> "cabal_macros.h",
"build" </> "autogen" </> ("Paths_" ++ name) <.> "hs" -- TODO: Is this needed? Also check out Paths_cpsa.hs.
] &%> \_ -> do
need ["shake/src/Package/Data.hs"] -- Track changes in this file
need [path </> name <.> "cabal"]
when (doesFileExist $ path </> "configure.ac") $ need [path </> "configure"]
run GhcCabal cabalArgs
......
......@@ -68,6 +68,7 @@ buildPackageDependencies pkg @ (Package name path _) (stage, dist, settings) =
let buildDir = path </> dist
in
(buildDir </> "build" </> name <.> "m") %> \out -> do
need ["shake/src/Package/Dependencies.hs"] -- Track changes in this file
let pkgData = buildDir </> "package-data.mk"
usePackageKey <- SupportsPackageKey || stage /= Stage0 -- TODO: check reasoning (distdir-way-opts)
[mods, srcDirs, includeDirs, deps, depKeys] <-
......
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