[project @ 1998-08-07 09:19:12 by sof]
[ghc-hetmet.git] / ghc / driver / Makefile
index 9fc7bff..c734719 100644 (file)
@@ -36,7 +36,7 @@ endif
 
 SCRIPT_SUBST_VARS := \
   INSTALLING \
-  PROJECTNAME PROJECTVERSION PROJECTPATCHLEVEL \
+  ProjectName ProjectVersion ProjectVersionInt ProjectPatchLevel \
   CURRENT_DIR HOSTPLATFORM TARGETPLATFORM \
   GHC_LIB_DIR GHC_RUNTIME_DIR GHC_UTILS_DIR GHC_INCLUDE_DIR \
   GHC_OPT_HILEV_ASM GhcWithNativeCodeGen LeadingUnderscore\
@@ -101,6 +101,14 @@ install ::
        @$(RM) $(SCRIPT_PROG)
        @$(MAKE) $(MFLAGS) BIN_DIST=0 $(SCRIPT_PROG)
 
+#
+# Another hack (hmm..I can see a pattern developing here :-)
+# In ghc/driver, we create a symlink from ghc-<whatever-version> to
+# ghc, but we don't want this included in a source distribution.
+# We `solve' this by removing `ghc' from the dist tree here.
+dist ::
+       @echo "Patching dist tree: removing $(SRC_DIST_DIR)/ghc symlink"
+       $(RM) $(SRC_DIST_DIR)/ghc
 
 #
 # Option vars for the special ways (that the driver has special pleading for).