From 142889f4badeb54fcd5687a0f3c0e5f18e215d2f Mon Sep 17 00:00:00 2001 From: sof Date: Mon, 19 May 1997 05:50:08 +0000 Subject: [PATCH] [project @ 1997-05-19 05:48:50 by sof] ghc-2-03-p1 merged onto main trunk --- ghc/utils/Makefile | 3 ++- ghc/utils/hstags/hstags.prl | 8 +++++--- ghc/utils/mkdependHS/mkdependHS.prl | 14 ++++++++------ ghc/utils/parallel/Makefile | 15 +++++++++++++-- 4 files changed, 28 insertions(+), 12 deletions(-) diff --git a/ghc/utils/Makefile b/ghc/utils/Makefile index 7855415..edb0ece 100644 --- a/ghc/utils/Makefile +++ b/ghc/utils/Makefile @@ -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 diff --git a/ghc/utils/hstags/hstags.prl b/ghc/utils/hstags/hstags.prl index c7e137a..9d4afdd 100644 --- a/ghc/utils/hstags/hstags.prl +++ b/ghc/utils/hstags/hstags.prl @@ -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; diff --git a/ghc/utils/mkdependHS/mkdependHS.prl b/ghc/utils/mkdependHS/mkdependHS.prl index d0e2baa..3698520 100644 --- a/ghc/utils/mkdependHS/mkdependHS.prl +++ b/ghc/utils/mkdependHS/mkdependHS.prl @@ -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"; diff --git a/ghc/utils/parallel/Makefile b/ghc/utils/parallel/Makefile index bd9df22..b2ebf84 100644 --- a/ghc/utils/parallel/Makefile +++ b/ghc/utils/parallel/Makefile @@ -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 -- 1.7.10.4