add :cmd
[ghc-hetmet.git] / utils / Makefile
index b4a7ba1..a6f5f9a 100644 (file)
@@ -1,7 +1,7 @@
 TOP=..
 include $(TOP)/mk/boilerplate.mk
 
-ifneq "$(BIN_DIST_NAME)" ""
+ifeq "$(MAKING_BIN_DIST)" "1"
 # We're doing a binary-dist, descend into a subset of the dirs.
 SUBDIRS = hp2ps unlit
 else
@@ -22,7 +22,6 @@ ifneq "$(TARGETPLATFORM)" "i386-unknown-mingw32"
 SUBDIRS += lndir
 endif
 
-
 # Utils that we don't build by default:
 #      nofib-analyse
 
@@ -43,3 +42,10 @@ endif
 #  a Haskell compiler and if you want it.
 
 include $(TOP)/mk/target.mk
+
+# genprimopcode is needed to boot in ghc/compiler...
+ifneq "$(BootingFromHc)" "YES"
+boot ::
+       $(MAKE) -C genprimopcode
+endif
+