#################################################################################
#
-# $Id: suffix.mk,v 1.2 1997/09/03 23:39:45 sof Exp $
+# $Id: suffix.mk,v 1.5 1998/12/03 15:24:08 simonm 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/U_$*.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