X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fmk%2Ftarget.mk;h=10ebf94187cc0b947b9d31840d5b70b28a1ef5ec;hb=973810c84a79fae3667a90586b32f7f583cf632a;hp=0d49585a90ca70829cdf57bc90ff164051e61dfc;hpb=1fb1ab5d53a09607e7f6d2450806760688396387;p=ghc-hetmet.git diff --git a/ghc/mk/target.mk b/ghc/mk/target.mk index 0d49585..10ebf94 100644 --- a/ghc/mk/target.mk +++ b/ghc/mk/target.mk @@ -8,6 +8,17 @@ GHC_TOP := $(TOP) TOP:=$(TOP)/.. +# When booting from .hc files, remove the suffix rule for +# .l?hs -> .o, so that the .hc -> .o is used instead. +# Also disable the generation of the .hc files, even if +# the .l?hs files are newer than the .hc ones. +ifeq "$(GhcWithHscBuiltViaC)" "YES" +%.$(way_)o : %.lhs +%.$(way_)o : %.hs +%.$(way_)hc : %.lhs +%.$(way_)hc : %.hs +endif + include $(TOP)/mk/target.mk # Reset TOP