Fix the order in which things get built
[ghc-hetmet.git] / utils / Makefile
index ca59819..972716f 100644 (file)
@@ -3,13 +3,13 @@ include $(TOP)/mk/boilerplate.mk
 
 ifeq "$(DOING_BIN_DIST)" "YES"
 # We're doing a binary-dist, descend into a subset of the dirs.
-SUBDIRS = mkdirhier ghc-pkg hasktags hp2ps hsc2hs parallel prof unlit runghc hpc pwd
+SUBDIRS = mkdirhier ghc-pkg hasktags hp2ps parallel unlit runghc hpc pwd
 else
 ifeq "$(BootingFromHc)" "YES"
 SUBDIRS = mkdependC mkdirhier runstdtest genapply genprimopcode ghc-pkg unlit
 else
-SUBDIRS = mkdependC mkdirhier runstdtest ghc-pkg hasktags hp2ps hsc2hs \
-         parallel prof unlit genprimopcode genapply runghc hpc pwd
+SUBDIRS = mkdependC mkdirhier runstdtest ghc-pkg hasktags hp2ps \
+         installPackage parallel unlit genprimopcode genapply runghc hpc pwd
 endif
 ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
 # lndir doesn't build on Windows
@@ -53,3 +53,14 @@ boot ::
        $(MAKE) -C genprimopcode
 endif
 
+with-bootstrapping-compiler:
+       $(MAKE) -C hsc2hs with-bootstrapping-compiler
+
+ifneq "$(NO_INSTALL_HSC2HS)" "YES"
+with-stage-1:
+       $(MAKE) -C hsc2hs with-stage-1
+
+install ::
+       $(MAKE) -C hsc2hs install
+endif
+