X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=23f98a42548c8f07aff447bdb3b41f0d94497291;hb=29e55dea299569979d4e73d64b709a97aaea36e8;hp=c338a80275b5d11fa192451bd8988215ae6645cc;hpb=9c02be64bb791a49d20a113259cba6a9b71a82d8;p=ghc-hetmet.git diff --git a/Makefile b/Makefile index c338a80..23f98a4 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