[project @ 2001-05-03 21:07:21 by sof]
[ghc-hetmet.git] / ghc / driver / Makefile
index 3e919d2..ef3ad98 100644 (file)
@@ -1,5 +1,5 @@
 #-----------------------------------------------------------------------------
-# $Id: Makefile,v 1.58 2001/03/27 08:29:07 qrczak 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
@@ -54,9 +54,13 @@ package.conf : pkgconf
 Package.o : ../utils/ghc-pkg/Package.hs
 
 override datadir = $(libdir)
-INSTALL_DATAS += package.conf
+INSTALL_DATAS += package.conf ghc-usage.txt
 
-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
 
 # -----------------------------------------------------------------------------