summaryrefslogtreecommitdiff
path: root/rules/hi-rule.mk
diff options
context:
space:
mode:
Diffstat (limited to 'rules/hi-rule.mk')
-rw-r--r--rules/hi-rule.mk14
1 files changed, 2 insertions, 12 deletions
diff --git a/rules/hi-rule.mk b/rules/hi-rule.mk
index e478c17aea..a343389967 100644
--- a/rules/hi-rule.mk
+++ b/rules/hi-rule.mk
@@ -71,25 +71,15 @@
#
# a/%.hi : a/%.o b/%.hs ;
-define hi-rule # $1 = source directory, $2 = object directory, $3 = way
-
-$(call hi-rule-helper,$2/%.$$($3_hisuf) : $2/%.$$($3_osuf) $1/%.hs)
-$(call hi-rule-helper,$2/%.$$($3_hisuf) : $2/%.$$($3_osuf) $1/%.lhs)
-
-$(call hi-rule-helper,$2/%.$$($3_way_)hi-boot : $2/%.$$($3_way_)o-boot $1/%.hs)
-$(call hi-rule-helper,$2/%.$$($3_way_)hi-boot : $2/%.$$($3_way_)o-boot $1/%.lhs)
-
-endef
-
ifeq "$(ExtraMakefileSanityChecks)" "NO"
-define hi-rule-helper # $1 = rule header
+define hi-rule # $1 = rule header
$1 ;
endef
else
-define hi-rule-helper # $1 = rule header
+define hi-rule # $1 = rule header
$1
@if [ ! -f $$@ ] ; then \
echo "Panic! $$< exists, but $$@ does not."; \