summaryrefslogtreecommitdiff
path: root/rules/hs-suffix-rules.mk
diff options
context:
space:
mode:
Diffstat (limited to 'rules/hs-suffix-rules.mk')
-rw-r--r--rules/hs-suffix-rules.mk8
1 files changed, 5 insertions, 3 deletions
diff --git a/rules/hs-suffix-rules.mk b/rules/hs-suffix-rules.mk
index 459ee372e9..5802591bf8 100644
--- a/rules/hs-suffix-rules.mk
+++ b/rules/hs-suffix-rules.mk
@@ -27,13 +27,15 @@ $1/$2/build/%.$$($3_hcsuf) : $1/$2/build/autogen/%.hs $$(LAX_DEPS_FOLLOW) $$($1_
$1/$2/build/%.$$($3_osuf) : $1/$2/build/autogen/%.hs $$(LAX_DEPS_FOLLOW) $$($1_$2_HC_DEP)
$$(call cmd,$1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) -c $$< -o $$@
-$(call hi-rule,$1/$2/build,$1/$2/build,$3)
-$(call hi-rule,$1/$2/build/autogen,$1/$2/build,$3)
-
endif
$$(foreach dir,$$($1_$2_HS_SRC_DIRS),\
$$(eval $$(call hs-suffix-rules-srcdir,$1,$2,$3,$$(dir))))
+$(call hi-rule,$1/$2/build,$1/$2/build,$3)
+$(call hi-rule,$1/$2/build/autogen,$1/$2/build,$3)
+$$(foreach dir,$$($1_$2_HS_SRC_DIRS),\
+ $$(eval $$(call hi-rule,$1/$$(dir),$1/$2/build,$3)))
+
endef # hs-suffix-rules