From: simonpj Date: Thu, 27 Jan 2005 12:47:05 +0000 (+0000) Subject: [project @ 2005-01-27 12:47:05 by simonpj] X-Git-Tag: Initial_conversion_from_CVS_complete~1174 X-Git-Url: http://git.megacz.com/?p=ghc-hetmet.git;a=commitdiff_plain;h=01fb268190300ee29e02d767e43f2ae047c6ae67 [project @ 2005-01-27 12:47:05 by simonpj] Extra suffix rules for hs-boot stuff; you need this to compile the new hs-boot story --- diff --git a/mk/suffix.mk b/mk/suffix.mk index b53280a..d8b298c 100644 --- a/mk/suffix.mk +++ b/mk/suffix.mk @@ -47,11 +47,21 @@ $(odir_)%.$(way_)o : %.hs $(HC) $(HC_OPTS) -c $< -o $@ -ohi $(basename $@).$(way_)hi $(HC_POST_OPTS) +$(odir_)%.$(way_)o-boot : %.hs-boot + $(HC_PRE_OPTS) + $(HC) $(HC_OPTS) -c $< -o $@ -ohi $(basename $@).$(way_)hi-boot + $(HC_POST_OPTS) + $(odir_)%.$(way_)o : %.lhs $(HC_PRE_OPTS) $(HC) $(HC_OPTS) -c $< -o $@ -ohi $(basename $@).$(way_)hi $(HC_POST_OPTS) +$(odir_)%.$(way_)o-boot : %.lhs-boot + $(HC_PRE_OPTS) + $(HC) $(HC_OPTS) -c $< -o $@ -ohi $(basename $@).$(way_)hi-boot + $(HC_POST_OPTS) + $(odir_)%.$(way_)hc : %.lhs $(RM) $@ $(HC) $(HC_OPTS) -C $< -o $@ @@ -96,6 +106,13 @@ $(odir_)%.$(way_)hc : %.lhc else exit 0 ; \ fi +%.$(way_)hi-boot : %.$(way_)o-boot + @if [ ! -f $@ ] ; then \ + echo Panic! $< exists, but $@ does not.; \ + exit 1; \ + else exit 0 ; \ + fi + $(odir_)%.$(way_)hi : %.$(way_)hc @if [ ! -f $@ ] ; then \ echo Panic! $< exists, but $@ does not.; \