From a9aad3a6ff24f5f89a3a4372e267234c03f85f78 Mon Sep 17 00:00:00 2001 From: simonmar Date: Mon, 27 Aug 2001 13:11:44 +0000 Subject: [PATCH] [project @ 2001-08-27 13:11:44 by simonmar] a couple of tweaks to the hc-file-bundle target: - Add -r option to ${RM} to blow away an existing binary-dist temporary directory if present. - Fix bogons in the bundle building code. --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 5fc80eb..0a8271c 100644 --- a/Makefile +++ b/Makefile @@ -291,7 +291,7 @@ dist-package-zip :: # HC file bundles hc-file-bundle : project-check - $(RM) $(ProjectNameShort)-$(ProjectVersion) + $(RM) -r $(ProjectNameShort)-$(ProjectVersion) $(LN_S) . $(ProjectNameShort)-$(ProjectVersion) find $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler \ $(ProjectNameShort)-$(ProjectVersion)/ghc/driver \ @@ -302,7 +302,7 @@ hc-file-bundle : project-check $(ProjectNameShort)-$(ProjectVersion)/ghc/driver \ $(ProjectNameShort)-$(ProjectVersion)/ghc/lib \ $(ProjectNameShort)-$(ProjectVersion)/hslibs \ - -name "*.hsc" | sed 's/hsc$/hs$/g' >> hc-files-to-go + -name "*.hsc" | sed 's/hsc$$/hs/g' >> hc-files-to-go tar czf $(ProjectNameShort)-$(ProjectVersion)-$(TARGETPLATFORM)-hc.tar.gz `cat hc-files-to-go` CLEAN_FILES += hc-files-to-go *-hc.tar.gz -- 1.7.10.4