summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorsof <unknown>2002-07-30 03:42:56 +0000
committersof <unknown>2002-07-30 03:42:56 +0000
commit611b0cae64bb3403d0bac78e8a1786a4a6e5061a (patch)
tree223bafd39d2238377efe6c45875cc51f1608a119 /Makefile
parent90b4aa6cff4a95d9fe205b2bf24e28ba505d2bfe (diff)
downloadhaskell-611b0cae64bb3403d0bac78e8a1786a4a6e5061a.tar.gz
[project @ 2002-07-30 03:42:56 by sof]
hc-file-bundle: * only include the .hsc-derived .hs files that exist in the build tree. * updated to include current happy-derived .hs files
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 8 insertions, 7 deletions
diff --git a/Makefile b/Makefile
index c338a80275..e2095f0941 100644
--- a/Makefile
+++ b/Makefile
@@ -296,19 +296,20 @@ hc-file-bundle : project-check
$(LN_S) . $(ProjectNameShort)-$(ProjectVersion)
$(FIND) $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler \
$(ProjectNameShort)-$(ProjectVersion)/ghc/driver \
- $(ProjectNameShort)-$(ProjectVersion)/ghc/lib \
+ $(ProjectNameShort)-$(ProjectVersion)/libraries \
$(ProjectNameShort)-$(ProjectVersion)/hslibs \
\( -name "*.hc" -o -name "*_hsc.[ch]" -o -name "*_stub.[ch]" \) -print > hc-files-to-go
- $(FIND) $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler \
- $(ProjectNameShort)-$(ProjectVersion)/ghc/driver \
- $(ProjectNameShort)-$(ProjectVersion)/ghc/lib \
- $(ProjectNameShort)-$(ProjectVersion)/hslibs \
- -name "*.hsc" -print | sed 's/hsc$$/hs/g' >> hc-files-to-go
+ @for f in `$(FIND) $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler $(ProjectNameShort)-$(ProjectVersion)/ghc/driver $(ProjectNameShort)-$(ProjectVersion)/libraries $(ProjectNameShort)-$(ProjectVersion)/hslibs -name "*.hsc" -print` ""; do \
+ if test "x$$f" != "x" && test -e `echo "$$f" | sed 's/hsc$$/hs/g'`; then \
+ echo `echo "$$f" | sed 's/hsc$$/hs/g' ` >> hc-files-to-go ; \
+ fi; \
+ done;
echo $(ProjectNameShort)-$(ProjectVersion)/libraries/base/GHC/PrimopWrappers.hs >> hc-files-to-go
echo $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler/*.hs-incl >> hc-files-to-go
echo $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler/parser/Parser.hs >> hc-files-to-go
+ echo $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler/parser/ParserCore.hs >> hc-files-to-go
echo $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler/main/ParsePkgConf.hs >> hc-files-to-go
- echo $(ProjectNameShort)-$(ProjectVersion)/hslibs/hssource/HsParser.hs >> hc-files-to-go
+ echo $(ProjectNameShort)-$(ProjectVersion)/libraries/haskell-src/Language/Haskell/Parser.hs >> 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