X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=5fc80ebd9afedaabfdc885889fba806e8167f03c;hb=6aada64f9309864b7293e5c797546ab5403f9a8f;hp=c96a0c13aee5a74c663bb65e9dbd2376168c19a4;hpb=c481ebb0eca85885e22e526ea5de43573e725199;p=ghc-hetmet.git diff --git a/Makefile b/Makefile index c96a0c1..5fc80eb 100644 --- a/Makefile +++ b/Makefile @@ -288,6 +288,26 @@ dist-package-zip :: $(ZIP) $(ZIP_OPTS) -r $(SRC_DIST_NAME)-src.zip $(SRC_DIST_PATHS) # ----------------------------------------------------------------------------- +# HC file bundles + +hc-file-bundle : project-check + $(RM) $(ProjectNameShort)-$(ProjectVersion) + $(LN_S) . $(ProjectNameShort)-$(ProjectVersion) + find $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler \ + $(ProjectNameShort)-$(ProjectVersion)/ghc/driver \ + $(ProjectNameShort)-$(ProjectVersion)/ghc/lib \ + $(ProjectNameShort)-$(ProjectVersion)/hslibs \ + -name "*.hc" -o -name "*_hsc.[ch]" -o -name "*_stub.[ch]" > hc-files-to-go + find $(ProjectNameShort)-$(ProjectVersion)/ghc/compiler \ + $(ProjectNameShort)-$(ProjectVersion)/ghc/driver \ + $(ProjectNameShort)-$(ProjectVersion)/ghc/lib \ + $(ProjectNameShort)-$(ProjectVersion)/hslibs \ + -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 + +# ----------------------------------------------------------------------------- DIST_CLEAN_FILES += config.cache config.status