diff options
Diffstat (limited to 'rules/hs-suffix-rules-srcdir.mk')
-rw-r--r-- | rules/hs-suffix-rules-srcdir.mk | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/rules/hs-suffix-rules-srcdir.mk b/rules/hs-suffix-rules-srcdir.mk deleted file mode 100644 index 1798bfb0b1..0000000000 --- a/rules/hs-suffix-rules-srcdir.mk +++ /dev/null @@ -1,50 +0,0 @@ -# ----------------------------------------------------------------------------- -# -# (c) 2009 The University of Glasgow -# -# This file is part of the GHC build system. -# -# To understand how the build system works and how to modify it, see -# https://gitlab.haskell.org/ghc/ghc/wikis/building/architecture -# https://gitlab.haskell.org/ghc/ghc/wikis/building/modifying -# -# ----------------------------------------------------------------------------- - - -define hs-suffix-rules-srcdir -# args: $1 = dir, $2 = distdir, $3 = srcdir - -# Preprocessing Haskell source - -ifneq "$$(BINDIST)" "YES" - -$1/$2/build/%.hs : $1/$3/%.ly | $$$$(dir $$$$@)/. - $$(call cmd,HAPPY) $$($1_$2_ALL_HAPPY_OPTS) $$< -o $$@ - -$1/$2/build/%.hs : $1/$3/%.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/$3/%.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/$3/%.hsc $$$$(hsc2hs_INPLACE) | $$$$(dir $$$$@)/. - $$(call cmd,hsc2hs_INPLACE) $$($1_$2_ALL_HSC2HS_OPTS) $$< -o $$@ - -# Now the rules for hs-boot files. - -$1/$2/build/%.hs-boot : $1/$3/%.hs-boot | $$$$(dir $$$$@)/. - "$$(CP)" $$< $$@ - -$1/$2/build/%.lhs-boot : $1/$3/%.lhs-boot | $$$$(dir $$$$@)/. - "$$(CP)" $$< $$@ - -endif - -endef - |