summaryrefslogtreecommitdiff
path: root/rules/build-prog.mk
diff options
context:
space:
mode:
authorIan Lynagh <ian@well-typed.com>2013-02-21 15:32:46 +0000
committerIan Lynagh <ian@well-typed.com>2013-02-21 15:47:16 +0000
commitf1368057296b00dbf7100b4308c8fa3c6844d797 (patch)
tree2bac0efc2d9006e2bea7069bc9e31b2fa2178783 /rules/build-prog.mk
parent0565f88e41bcd33fff52d884e2747c333d5d122e (diff)
downloadhaskell-f1368057296b00dbf7100b4308c8fa3c6844d797.tar.gz
Separate the non-way-specific hs-suffix rules
This means we don't define them multiple times
Diffstat (limited to 'rules/build-prog.mk')
-rw-r--r--rules/build-prog.mk2
1 files changed, 2 insertions, 0 deletions
diff --git a/rules/build-prog.mk b/rules/build-prog.mk
index 1321eac104..160ccb1f57 100644
--- a/rules/build-prog.mk
+++ b/rules/build-prog.mk
@@ -155,6 +155,8 @@ $(call c-suffix-rules,$1,$2,$$($1_$2_PROGRAM_WAY),NO)
endif
endif
+$$(foreach dir,$$($1_$2_HS_SRC_DIRS),\
+ $$(eval $$(call hs-suffix-rules-srcdir,$1,$2,$$(dir))))
$(call hs-suffix-way-rules,$1,$2,$$($1_$2_PROGRAM_WAY))
$(call c-objs,$1,$2,$$($1_$2_PROGRAM_WAY))