diff --git a/ghc/utils/prof/Makefile b/ghc/utils/prof/Makefile
index a6c73be94debe743b8fb9305cbd82c55f417e685..6cf76c6a494a3bec3747de6549ec4cfbfd408541 100644
--- a/ghc/utils/prof/Makefile
+++ b/ghc/utils/prof/Makefile
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.2 2000/04/05 10:27:10 simonmar Exp $
+# $Id: Makefile,v 1.3 2000/04/18 11:31:56 panne Exp $
 #
 # (c) The GHC Team, 2000
 #
@@ -29,7 +29,7 @@ SCRIPT_PROG 	=  $(INPLACE_SCRIPT_PROG)
 endif
 
 ifneq "$(BIN_DIST)" "1"
-SCRIPT_SUBST_VARS += libdir
+SCRIPT_SUBST_VARS += libdir libexecdir
 endif
 
 # don't recurse on 'make install'
diff --git a/ghc/utils/prof/ghcprof.prl b/ghc/utils/prof/ghcprof.prl
index bfd0ca0a3ea27d6d3a17e11193d22492b3a65cb5..b72a246e7a0da1edead0467c55f5e446bbfb9f0c 100644
--- a/ghc/utils/prof/ghcprof.prl
+++ b/ghc/utils/prof/ghcprof.prl
@@ -1,9 +1,9 @@
 # -----------------------------------------------------------------------------
-# $Id: ghcprof.prl,v 1.2 2000/04/05 10:28:02 simonmar Exp $
+# $Id: ghcprof.prl,v 1.3 2000/04/18 11:31:56 panne Exp $
 #
 # (c) The GHC Team 2000
 #
-# needs: INSTALLING, FPTOOLS_TOP_ABS, libdir, TARGETPLATFORM, TMPDIR
+# needs: FPTOOLS_TOP_ABS, INSTALLING, TMPDIR, TARGETPLATFORM, libdir, libexecdir
 #
 
 if ($ENV{'DAVINCIHOME'}) {