-# Avoid relinking the compiler during 'make install':
-(cd ghc/compiler; touch parser/hschooks.o ghc-*)
+# Build the rest of the libraries
+$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 parser/hschooks.o prelude/PrimOp.o main/Config.hs main/Config.o ghc-*)