[project @ 2003-07-23 11:44:24 by simonmar]
[ghc-hetmet.git] / ghc / utils / parallel / Makefile
index bd9df22..094c5cb 100644 (file)
@@ -1,9 +1,6 @@
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
 
-# Ways? what ways?
-WAYS=
-
 PERL_PROGS = \
   grs2gr gr2qp qp2ps ghc-fool-sort ghc-unfool-sort gr2pe gr2java \
   qp2ap gr2RTS RTS2gran gran-extr gp-ext-imp tf avg-RTS SPLIT \
@@ -35,7 +32,18 @@ $(BASH_PROGS) :
        @cat $@.bash >> $@
        @chmod a+x $@
 
-INSTALL_PROGS += $(BASH_PROGS) $(PERL_PROGS)
-CLEAN_FILES   += $(BASH_PROGS) $(PERL_PROGS)
+#
+# You'll only get this with Parallel Haskell or 
+# GranSim..
+#
+ifeq "$(BuildingParallel)" "YES"
+INSTALL_SCRIPTS += $(BASH_PROGS) $(PERL_PROGS)
+else
+ifeq "$(BuildingGranSim)" "YES"
+INSTALL_SCRIPTS += $(BASH_PROGS) $(PERL_PROGS)
+endif
+endif
+
+CLEAN_FILES     += $(BASH_PROGS) $(PERL_PROGS)
 
 include $(TOP)/mk/target.mk