[project @ 2004-08-19 11:27:45 by simonmar]
[ghc-hetmet.git] / ghc / utils / stat2resid / Makefile
index b6108c2..42c0c41 100644 (file)
@@ -1,9 +1,9 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.4 1997/03/19 20:44:56 simonpj Exp $
+# $Id: Makefile,v 1.11 2000/09/05 10:16:41 simonmar Exp $
 
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
-WAYS=
+
 DYN_LOADABLE_BITS = \
        parse-gcstats.prl \
        process-gcstats.prl
@@ -16,10 +16,11 @@ SCRIPT_OBJS=stat2resid.prl
 #
 INSTALLING=0
 
-SCRIPT_SUBST_VARS=TMPDIR SCRIPT_PATH
+ifneq "$(BIN_DIST)" "1"
+SCRIPT_SUBST_VARS=DEFAULT_TMPDIR
+endif
 
-INTERP=$(PERL)
-CLEAN_FILES += $(SCRIPT_PROG)
+INTERP=perl
 
 #
 # The stat2resid script is configured with a different
@@ -27,16 +28,16 @@ CLEAN_FILES += $(SCRIPT_PROG)
 # is to be installed or not.
 #
 ifeq "$(INSTALLING)" "1"
-SCRIPT_PATH:=$(libdir)
-else
-SCRIPT_PATH:=$(FPTOOLS_TOP_ABS)/ghc/utils/stat2resid
+ifeq "$(BIN_DIST)" "1"
+SCRIPT_PREFIX_FILES += prefix.txt
+endif
 endif
 
 #
 # install setup
 # 
-INSTALL_LIBS  += $(DYN_LOADABLE_BITS)
-INSTALL_PROGS += $(SCRIPT_PROG)
+INSTALL_LIBS    += $(DYN_LOADABLE_BITS)
+INSTALL_SCRIPTS += $(SCRIPT_PROG)
 
 
 #