X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=Makefile;h=0a8271c1820b4f1e09bef26d140acf9e25c3d03d;hb=8968073e164d4bc513e54ded0070d49c1ab1c22f;hp=c96a0c13aee5a74c663bb65e9dbd2376168c19a4;hpb=c481ebb0eca85885e22e526ea5de43573e725199;p=ghc-hetmet.git diff --git a/Makefile b/Makefile index c96a0c1..0a8271c 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) -r $(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