1 # line 9 "macros-ghc.ljm"
2 /* ToDo: cmp -> $(CMP) */
5 #define UgenTarget(fileroot) @@\
6 ExtraStuffToBeVeryClean(fileroot.c fileroot.h fileroot.hs) @@\
7 fileroot.c : fileroot.ugn @@\
8 d=`dirname fileroot.ugn` ; f=`basename fileroot.ugn .ugn` ; \ @@\
9 $(RM) fileroot.c fileroot.hs "$$d/U_$$f.hs" fileroot.h-SAVE @@\
10 if [ -f fileroot.h ] ; then $(MV) -f fileroot.h fileroot.h-SAVE ; else exit 0 ; fi @@\
11 $(UGEN) fileroot.ugn || ( $(RM) fileroot.h fileroot.c fileroot.hs; $(MV) -f fileroot.h-SAVE fileroot.h ) @@\
12 if cmp -s fileroot.h-SAVE fileroot.h ; then \ @@\
13 $(MV) -f fileroot.h-SAVE fileroot.h ; \ @@\
15 chmod 444 fileroot.h fileroot.c fileroot.hs ; \ @@\
17 @$(RM) fileroot.h-SAVE @@\
18 @d=`dirname fileroot.ugn` ; f=`basename fileroot.ugn .ugn` ; \ @@\
19 $(MV) -f fileroot.hs "$$d/U_$$f.hs" @@\
21 fileroot.h : fileroot.c @@\
23 #endif /* UgenTarget */