Tweak hc-build
authorIan Lynagh <igloo@earth.li>
Fri, 19 Jan 2007 22:08:50 +0000 (22:08 +0000)
committerIan Lynagh <igloo@earth.li>
Fri, 19 Jan 2007 22:08:50 +0000 (22:08 +0000)
Touch all the object files at the end of hc-build, as otherwise make
gets upset as the .h files are newer than them and tries to rebuild
stuff (and fails).

Print a nice message when we're finished.

distrib/hc-build

index a645fa3..43133f8 100644 (file)
@@ -107,6 +107,8 @@ $MAKE -C libraries boot all
 # The reconfigure step updates a few files, which can lead to
 # unnecessary recompilations.  Touch a bunch of things here to avoid
 # having to recompile stuff that we've already built.
-(cd compiler; touch $PRIMOP_BITS stage1/parser/hschooks.o stage1/prelude/PrimOp.o main/Config.hs stage1/main/Config.o stage1/ghc-* ghc-*)
+(cd compiler; touch main/Config.hs $PRIMOP_BITS stage1/*/*.o stage1/ghc-* ghc-*)
+
+echo hc-build done
+echo The tree should be safe to do 'make install stage=1' in.
 
-# At this point, the tree should be safe to do 'make install stage=1' in.