X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Fmk%2Fsuffix.mk;h=7c95850c04452768b3420bee842477db5ab36e13;hb=e63a226a21e24adee89174ea2403be3a3e1dcb89;hp=5cec340b11999aee8fa0402748fc4a930552955e;hpb=1fb1ab5d53a09607e7f6d2450806760688396387;p=ghc-hetmet.git diff --git a/ghc/mk/suffix.mk b/ghc/mk/suffix.mk index 5cec340..7c95850 100644 --- a/ghc/mk/suffix.mk +++ b/ghc/mk/suffix.mk @@ -1,6 +1,6 @@ ################################################################################# # -# $Id: suffix.mk,v 1.1 1997/03/14 08:00:37 simonpj Exp $ +# $Id: suffix.mk,v 1.5 1998/12/03 15:24:08 simonm Exp $ # # GHC-specific suffix rules # @@ -13,9 +13,12 @@ # resides in a directory parser/ # -parser/%.h parser/%.c parser/U_%.hs : parser/%.ugn - @$(RM) $@ parser/$*.hs parser/U_$*.hs parser/$*.h - $(UGEN) $< || $(RM) parser/$*.h parser/$*.hs +parser/U_%.hs : parser/%.c + @: + +parser/%.h parser/%.c : parser/%.ugn + @$(RM) $@ parser/$*.c parser/$*.hs parser/U_$*.hs parser/$*.h + $(UGEN) $< || $(RM) parser/$*.h parser/$*.c parser/$*.hs @$(MV) -f parser/$*.hs parser/U_$*.hs - @chmod 444 parser/$*.h parser/U_$*.hs + @chmod 444 parser/$*.h parser/$*.c parser/U_$*.hs