Put the generated Parser.y under compiler/stage<n>/build; fixes #7195
[ghc.git] / rules / hs-suffix-rules-srcdir.mk
index b39b41a..94a41d5 100644 (file)
@@ -26,6 +26,12 @@ $1/$2/build/%.hs : $1/$4/%.ly | $$$$(dir $$$$@)/.
 $1/$2/build/%.hs : $1/$4/%.y | $$$$(dir $$$$@)/.
        $$(call cmd,HAPPY) $$($1_$2_$3_ALL_HAPPY_OPTS) $$< -o $$@
 
+$1/$2/build/%.hs : $1/$2/build/%.ly | $$$$(dir $$$$@)/.
+       $$(call cmd,HAPPY) $$($1_$2_$3_ALL_HAPPY_OPTS) $$< -o $$@
+
+$1/$2/build/%.hs : $1/$2/build/%.y | $$$$(dir $$$$@)/.
+       $$(call cmd,HAPPY) $$($1_$2_$3_ALL_HAPPY_OPTS) $$< -o $$@
+
 $1/$2/build/%.hs : $1/$4/%.x | $$$$(dir $$$$@)/.
        $$(call cmd,ALEX) $$($1_$2_$3_ALL_ALEX_OPTS) $$< -o $$@