[project @ 2001-05-25 10:31:08 by simonmar]
[ghc-hetmet.git] / ghc / driver / Makefile
index ef11e08..ef3ad98 100644 (file)
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.60 2001/04/03 11:31:39 sewardj Exp $
+# $Id: Makefile,v 1.63 2001/04/12 15:17:17 michaelw Exp $
 #
 
 TOP=..
@@ -27,7 +27,7 @@ PKGCONF_OPTS = "$(TARGETPLATFORM)"            \
               "$(GHC_INCLUDE_DIR)"             \
               "$(FPTOOLS_TOP_ABS)"
 
-ghc_407_at_least = $(shell expr "$(GhcMinVersion)" \>= 7)
+ghc_407_at_least = $(shell expr "$(GhcVersion)" \>= 4.07)
 ifeq "$(ghc_407_at_least)" "1"
 ifneq "$(mingw32_TARGET_OS)" "1"
 SRC_HC_OPTS += -fglasgow-exts -cpp -package concurrent -package posix -package text
@@ -55,9 +55,12 @@ Package.o : ../utils/ghc-pkg/Package.hs
 
 override datadir = $(libdir)
 INSTALL_DATAS += package.conf ghc-usage.txt
-INSTALL_PROGS += pkgconf post-install-script
 
-CLEAN_FILES += pkgconf package.conf.inplace package.conf
+ifeq "$(BIN_DIST)" "1"
+INSTALL_PROGS += pkgconf
+endif
+
+CLEAN_FILES += Main.hi pkgconf package.conf.inplace package.conf
 
 # -----------------------------------------------------------------------------