Commit 01fb2681 authored by simonpj's avatar simonpj
Browse files

[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
parent 9a89def5
......@@ -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.; \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment