1 #################################################################################
3 # $Id: suffix.mk,v 1.1 1997/03/14 08:00:37 simonpj 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/$*.hs parser/U_$*.hs parser/$*.h
18 $(UGEN) $< || $(RM) parser/$*.h parser/$*.hs
19 @$(MV) -f parser/$*.hs parser/U_$*.hs
20 @chmod 444 parser/$*.h parser/U_$*.hs