[project @ 1997-05-19 05:48:50 by sof]
authorsof <unknown>
Mon, 19 May 1997 05:50:08 +0000 (05:50 +0000)
committersof <unknown>
Mon, 19 May 1997 05:50:08 +0000 (05:50 +0000)
ghc-2-03-p1 merged onto main trunk

ghc/utils/Makefile
ghc/utils/hstags/hstags.prl
ghc/utils/mkdependHS/mkdependHS.prl
ghc/utils/parallel/Makefile

index 7855415..edb0ece 100644 (file)
@@ -15,10 +15,11 @@ SUBDIRS = hp2ps             \
          hscpp         \
          hstags        \
          mkdependHS    \
-         parallel      \
+         parallel      \
          stat2resid    \
          ugen          \
          unlit
+
 endif
 
 # "heap-view" is not in the list because (a) it requires
index c7e137a..9d4afdd 100644 (file)
@@ -6,6 +6,7 @@
 #   TMPDIR
 #   TOP_PWD
 #   libdir
+#   libexecdir
 #   PROJECTVERSION
 #   HSP_IMPORTS
 
@@ -18,20 +19,21 @@ if ( $ENV{'TMPDIR'} ) { # where to make tmp file names
 
 $TopPwd         = "${TOP_PWD}"; # *Only* needed when using it in-situ (i.e., INSTALLING=0).
 $InstLibDirGhc  = "${libdir}";
+$InstLibExecDirGhc  = "${libexecdir}";
 
 $Unlit = ( $INSTALLING ? 
-           "${InstLibDirGhc}/unlit" : 
+           "${InstLibExecDirGhc}/unlit" : 
           "${TopPwd}/ghc/utils/unlit/unlit" );
 # but this is re-set to "cat" (after options) if -cpp not seen
 $HsCpp = ( $INSTALLING ? 
           "${InstLibDirGhc}/hscpp" : 
           "${TopPwd}/ghc/utils/hscpp/hscpp" );
 $HsP   = ( $INSTALLING ? 
-          "${InstLibDirGhc}/hsp" : 
+          "${InstLibExecDirGhc}/hsp" : 
           "${TopPwd}/ghc/compiler/hsp" );
 $HsTagsHelp = 
         ( $INSTALLING ? 
-          "${InstLibDirGhc}/hstags-help" : 
+          "${InstLibExecDirGhc}/hstags-help" : 
           "${TopPwd}/ghc/utils/hstags/hstags-help" );
 
 $Verbose = 0;
index d0e2baa..3698520 100644 (file)
@@ -2,7 +2,7 @@
 # perl script expect the following variables to be prepended:
 #
 #  RAWCPP TMPDIR TOP_PWD
-#  libdir datadir INSTALLING
+#  libdir libexecdir datadir INSTALLING
 #  PROJECTVERSION SED 
 #
 # tries to work like mkdependC - capable of dealing with:
@@ -87,12 +87,14 @@ if ( $ENV{'TMPDIR'} ) { # where to make tmp file names
     $ENV{'TMPDIR'} = "${TMPDIR}"; # set the env var as well
 }
 
-$TopPwd                 = "${TOP_PWD}";
-$InstLibDirGhc   = "${libdir}";
-$InstHsLibDirGhc = "${libdir}/hslibs";
-$InstDataDirGhc  = "${datadir}";
+$TopPwd                   = "${TOP_PWD}";
+$InstLibDirGhc     = "${libdir}";
+$InstLibExecDirGhc = "${libexecdir}";
+$InstHsLibDirGhc   = "${libdir}/hslibs";
+$InstDataDirGhc    = "${datadir}";
 
-$Unlit = ($INSTALLING) ? "${InstLibDirGhc}/unlit" : "${TopPwd}/ghc/utils/unlit/unlit";
+$Unlit = ($INSTALLING) ? "${InstLibExecDirGhc}/unlit" 
+                      : "${TopPwd}/ghc/utils/unlit/unlit";
 
 $Begin_magic_str = "# DO NOT DELETE: Beginning of Haskell dependencies\n";
 $End_magic_str = "# DO NOT DELETE: End of Haskell dependencies\n";
index bd9df22..b2ebf84 100644 (file)
@@ -35,7 +35,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