[project @ 1998-04-17 11:38:26 by sof]
authorsof <unknown>
Fri, 17 Apr 1998 11:38:26 +0000 (11:38 +0000)
committersof <unknown>
Fri, 17 Apr 1998 11:38:26 +0000 (11:38 +0000)
Workaround to prevent local build tree symlink from making it into a source dist

ghc/driver/Makefile

index f4fcab7..c734719 100644 (file)
@@ -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).