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-05-03 08:57:30 by simonmar]
[ghc-hetmet.git]
/
mk
/
suffix.mk
diff --git
a/mk/suffix.mk
b/mk/suffix.mk
index
e954345
..
d7870b4
100644
(file)
--- a/
mk/suffix.mk
+++ b/
mk/suffix.mk
@@
-30,6
+30,11
@@
endif
#-----------------------------------------------------------------------------
# Haskell Suffix Rules
#-----------------------------------------------------------------------------
# Haskell Suffix Rules
+# Turn off all the Haskell suffix rules if we're booting from .hc
+# files. The file bootstrap.mk contains alternative suffix rules in
+# this case.
+ifneq "$(BootingFromHc)" "YES"
+
%.$(way_)o : %.hs
$(HC_PRE_OPTS)
$(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@))
%.$(way_)o : %.hs
$(HC_PRE_OPTS)
$(HC) $(HC_OPTS) -c $< -o $@ -osuf $(subst .,,$(suffix $@))
@@
-91,6
+96,8
@@
endif
else exit 0 ; \
fi
else exit 0 ; \
fi
+endif # BootingViaC
+
#-----------------------------------------------------------------------------
# Happy Suffix Rules
#
#-----------------------------------------------------------------------------
# Happy Suffix Rules
#
@@
-105,8
+112,10
@@
endif
#-----------------------------------------------------------------------------
# hsc2hs Suffix Rules
#
#-----------------------------------------------------------------------------
# hsc2hs Suffix Rules
#
-%.hs.c %.hs.h %.hs : %.hsc
+ifneq "$(BootingFromHc)" "YES"
+%_hsc.c %_hsc.h %.hs : %.hsc
$(HSC2HS) $<
$(HSC2HS) $<
+endif
#-----------------------------------------------------------------------------
# Lx Suffix Rules
#-----------------------------------------------------------------------------
# Lx Suffix Rules
@@
-214,6
+223,9
@@
endif
%.html : %.sgml
@$(RM) $@
%.html : %.sgml
@$(RM) $@
+# $(PERL) $(COLLATEINDEX) -N -o index.sgml
+# $(JADE) -t sgml -V html-index -d $(SGMLSTYLESHEET) -c $(DOCBOOK_CATALOG) $<
+# $(PERL) $(COLLATEINDEX) -N -o index.sgml
$(SGML2HTML) $(SGML2HTML_OPTS) $<
%.html : %.tex
$(SGML2HTML) $(SGML2HTML_OPTS) $<
%.html : %.tex