1 #################################################################################
3 # $Id: suffix.mk,v 1.3 1997/09/04 19:51:32 sof Exp $
5 # GHC-specific suffix rules
7 #################################################################################
9 #-----------------------------------------------------------------------------
12 # Hack, the implicit rule assumes the ugen files
13 # resides in a directory parser/
16 parser/%.h parser/%.c parser/U_%.hs : parser/%.ugn
17 @$(RM) $@ parser/$*.c parser/$*.hs parser/U_$*.hs parser/$*.h
18 $(UGEN) $< || $(RM) parser/$*.h parser/$*.c parser/$*.hs
19 @$(MV) -f parser/$*.hs parser/U_$*.hs
20 @chmod 444 parser/$*.h parser/$*.c parser/U_$*.hs