[project @ 1998-08-27 14:35:55 by sof]
[ghc-hetmet.git] / ghc / mk / suffix.mk
index 5cec340..08c3d4c 100644 (file)
@@ -1,6 +1,6 @@
 #################################################################################
 #
-#       $Id: suffix.mk,v 1.1 1997/03/14 08:00:37 simonpj Exp $
+#       $Id: suffix.mk,v 1.4 1998/08/14 12:27:45 sof Exp $
 #
 #              GHC-specific suffix rules
 #
 # 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