projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2001-10-23 14:35:12 by rrt]
[ghc-hetmet.git]
/
mk
/
suffix.mk
diff --git
a/mk/suffix.mk
b/mk/suffix.mk
index
693c6d9
..
60308b3
100644
(file)
--- a/
mk/suffix.mk
+++ b/
mk/suffix.mk
@@
-84,14
+84,14
@@
ifneq "$(BootingFromHc)" "YES"
%.$(way_)hi : %.$(way_)o
@if [ ! -f $@ ] ; then \
%.$(way_)hi : %.$(way_)o
@if [ ! -f $@ ] ; then \
- echo Panic! $< exists, but $@ does not. \
+ echo Panic! $< exists, but $@ does not.; \
exit 1; \
else exit 0 ; \
fi
%.$(way_)hi : %.$(way_)hc
@if [ ! -f $@ ] ; then \
exit 1; \
else exit 0 ; \
fi
%.$(way_)hi : %.$(way_)hc
@if [ ! -f $@ ] ; then \
- echo Panic! $< exists, but $@ does not. \
+ echo Panic! $< exists, but $@ does not.; \
exit 1; \
else exit 0 ; \
fi
exit 1; \
else exit 0 ; \
fi
@@
-115,6
+115,7
@@
endif # BootingViaC
ifneq "$(BootingFromHc)" "YES"
%_hsc.c %_hsc.h %.hs : %.hsc
$(HSC2HS) $(HSC2HS_OPTS) $<
ifneq "$(BootingFromHc)" "YES"
%_hsc.c %_hsc.h %.hs : %.hsc
$(HSC2HS) $(HSC2HS_OPTS) $<
+ @touch $(patsubst %.hsc,%_hsc.c,$<)
endif
#-----------------------------------------------------------------------------
endif
#-----------------------------------------------------------------------------
@@
-227,6
+228,8
@@
endif
# $(JADE) -t sgml -V html-index -d $(SGMLSTYLESHEET) -c $(DOCBOOK_CATALOG) $<
# $(PERL) $(COLLATEINDEX) -N -o index.sgml
$(SGML2HTML) $(SGML2HTML_OPTS) $<
# $(JADE) -t sgml -V html-index -d $(SGMLSTYLESHEET) -c $(DOCBOOK_CATALOG) $<
# $(PERL) $(COLLATEINDEX) -N -o index.sgml
$(SGML2HTML) $(SGML2HTML_OPTS) $<
+# touch the .html file so that it is seen to be built
+ @touch $@
%.html : %.tex
@$(RM) $@
%.html : %.tex
@$(RM) $@
@@
-270,3
+273,10
@@
endif
%.$(way_)o : %.$(way_)rc
@$(RM) $@
windres $< $@
%.$(way_)o : %.$(way_)rc
@$(RM) $@
windres $< $@
+
+#-----------------------------------------------------------------------------
+# Preprocessor suffix rule
+
+% : %.pp
+ rm -f $@
+ $(CPP) $(CPP_OPTS) -x c $< | $(SED) -e '/^#/d' > $@