[project @ 1997-03-14 07:52:06 by simonpj]
[ghc-hetmet.git] / ghc / mk / suffix.mk
1 #################################################################################
2 #
3 #        $Id: suffix.mk,v 1.1 1997/03/14 08:00:37 simonpj Exp $
4 #
5 #               GHC-specific suffix rules
6 #
7 #################################################################################
8
9 #-----------------------------------------------------------------------------
10 # Ugen suffix rules. 
11 #
12 # Hack, the implicit rule assumes the ugen files
13 # resides in a directory parser/
14 #
15
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
21