summaryrefslogtreecommitdiff
path: root/rules/hs-suffix-rules-srcdir.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-01-05 18:50:29 +0000
committerIan Lynagh <ian@well-typed.com>2013-01-10 18:34:17 +0000
commit5cb088088be8573a01c991421ad882ce899067db (patch)
tree78336541081f121863be9b28a25b9b00f9c06d6a /rules/hs-suffix-rules-srcdir.mk
parent8dd2f981e43211a5c47aabe8b45e572e4f50b9fd (diff)
downloadhaskell-5cb088088be8573a01c991421ad882ce899067db.tar.gz
Make the rule for .hi files depend on the .hs/.lhs files
make thought that it could make a .hi file for the C files in libraries, which was causing problems when using dynamic-too.
Diffstat (limited to 'rules/hs-suffix-rules-srcdir.mk')
-rw-r--r--rules/hs-suffix-rules-srcdir.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/hs-suffix-rules-srcdir.mk b/rules/hs-suffix-rules-srcdir.mk
index 94a41d5e73..776d1ce0f6 100644
--- a/rules/hs-suffix-rules-srcdir.mk
+++ b/rules/hs-suffix-rules-srcdir.mk
@@ -52,6 +52,8 @@ $1/$2/build/%.$$($3_hcsuf) : $1/$4/%.hs $$(LAX_DEPS_FOLLOW) $$($1_$2_HC_DEP) $$(
$1/$2/build/%.$$($3_hcsuf) : $1/$4/%.lhs $$(LAX_DEPS_FOLLOW) $$($1_$2_HC_DEP) $$($1_$2_PKGDATA_DEP)
$$(call cmd,$1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) -C $$< -o $$@
+$(call hi-rule,$1/$4,$1/$2/build,$3)
+
endif
# XXX: for some reason these get used in preference to the direct