Commit 010dd78b authored by Andrey Mokhov's avatar Andrey Mokhov
Browse files

Add missing dependencies on generated files

See #285.
parent 4fd513a3
......@@ -6,6 +6,7 @@ import Base
import Context
import Expression
import Oracles.ModuleFiles
import Rules.Generate
import Settings.Path
import Target
import Util
......@@ -15,6 +16,7 @@ buildPackageDependencies rs context@Context {..} =
buildPath context -/- ".dependencies" %> \deps -> do
srcs <- hsSources context
need srcs
orderOnly =<< interpretInContext context generatedDependencies
let mk = deps <.> "mk"
if srcs == []
then writeFileChanged mk ""
......
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