[project @ 2004-11-10 03:20:31 by wolfgang]
[ghc-hetmet.git] / ghc / utils / stat2resid / Makefile
index 758694d..42c0c41 100644 (file)
@@ -1,9 +1,9 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.6 1997/03/24 02:50:26 sof Exp $
+# $Id: Makefile,v 1.11 2000/09/05 10:16:41 simonmar Exp $
 
 TOP=../..
 include $(TOP)/mk/boilerplate.mk
-override WAYS=
+
 DYN_LOADABLE_BITS = \
        parse-gcstats.prl \
        process-gcstats.prl
@@ -16,10 +16,11 @@ SCRIPT_OBJS=stat2resid.prl
 #
 INSTALLING=0
 
-SCRIPT_SUBST_VARS=TMPDIR
+ifneq "$(BIN_DIST)" "1"
+SCRIPT_SUBST_VARS=DEFAULT_TMPDIR
+endif
 
 INTERP=perl
-CLEAN_FILES += $(SCRIPT_PROG)
 
 #
 # The stat2resid script is configured with a different
@@ -35,7 +36,7 @@ endif
 #
 # install setup
 # 
-INSTALL_LIBS += $(DYN_LOADABLE_BITS)
+INSTALL_LIBS    += $(DYN_LOADABLE_BITS)
 INSTALL_SCRIPTS += $(SCRIPT_PROG)