summaryrefslogtreecommitdiff
path: root/rules/hs-suffix-way-rules-srcdir.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/hs-suffix-way-rules-srcdir.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/hs-suffix-way-rules-srcdir.mk')
-rw-r--r--rules/hs-suffix-way-rules-srcdir.mk26
1 files changed, 0 insertions, 26 deletions
diff --git a/rules/hs-suffix-way-rules-srcdir.mk b/rules/hs-suffix-way-rules-srcdir.mk
index bbdd093552..5868d23168 100644
--- a/rules/hs-suffix-way-rules-srcdir.mk
+++ b/rules/hs-suffix-way-rules-srcdir.mk
@@ -14,28 +14,8 @@
define hs-suffix-way-rules-srcdir
# args: $1 = dir, $2 = distdir, $3 = way, $4 = srcdir
-# Preprocessing Haskell source
-
ifneq "$$(BINDIST)" "YES"
-$1/$2/build/%.hs : $1/$4/%.ly | $$$$(dir $$$$@)/.
- $$(call cmd,HAPPY) $$($1_$2_ALL_HAPPY_OPTS) $$< -o $$@
-
-$1/$2/build/%.hs : $1/$4/%.y | $$$$(dir $$$$@)/.
- $$(call cmd,HAPPY) $$($1_$2_ALL_HAPPY_OPTS) $$< -o $$@
-
-$1/$2/build/%.hs : $1/$2/build/%.ly | $$$$(dir $$$$@)/.
- $$(call cmd,HAPPY) $$($1_$2_ALL_HAPPY_OPTS) $$< -o $$@
-
-$1/$2/build/%.hs : $1/$2/build/%.y | $$$$(dir $$$$@)/.
- $$(call cmd,HAPPY) $$($1_$2_ALL_HAPPY_OPTS) $$< -o $$@
-
-$1/$2/build/%.hs : $1/$4/%.x | $$$$(dir $$$$@)/.
- $$(call cmd,ALEX) $$($1_$2_ALL_ALEX_OPTS) $$< -o $$@
-
-$1/$2/build/%_hsc.c $1/$2/build/%_hsc.h $1/$2/build/%.hs : $1/$4/%.hsc $$(HSC2HS_INPLACE) | $$$$(dir $$$$@)/.
- $$(call cmd,HSC2HS_INPLACE) $$($1_$2_ALL_HSC2HS_OPTS) $$< -o $$@
-
# Compiling Haskell source
$1/$2/build/%.$$($3_osuf) : $1/$4/%.hs $$(LAX_DEPS_FOLLOW) $$($1_$2_HC_DEP) $$($1_$2_PKGDATA_DEP)
@@ -70,12 +50,6 @@ $1/$2/build/%.$$($3_osuf) : $1/$2/build/%.hc includes/ghcautoconf.h includes/ghc
# Now the rules for hs-boot files.
-$1/$2/build/%.hs-boot : $1/$4/%.hs-boot
- "$$(CP)" $$< $$@
-
-$1/$2/build/%.lhs-boot : $1/$4/%.lhs-boot
- "$$(CP)" $$< $$@
-
$1/$2/build/%.$$($3_way_)o-boot : $1/$4/%.hs-boot $$(LAX_DEPS_FOLLOW) $$($1_$2_HC_DEP) $$($1_$2_PKGDATA_DEP)
$$(call cmd,$1_$2_HC) $$($1_$2_$3_ALL_HC_OPTS) -c $$< -o $$@