-dist-package-tar-gz ::
- $(TAR) chzf $(SRC_DIST_NAME)-src.tar.gz $(SRC_DIST_NAME)
-
-dist-package-zip ::
- cd ..; $(LN_S) $(FPTOOLS_TOP_ABS) $(SRC_DIST_NAME) && \
- $(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]" \) -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
- 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/main/ParsePkgConf.hs >> hc-files-to-go
- echo $(ProjectNameShort)-$(ProjectVersion)/hslibs/hssource/HsParser.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
-
-# -----------------------------------------------------------------------------
-
-DIST_CLEAN_FILES += config.cache config.status
-
-#
-# If you've ended up using an in-place version of Happy,
-# make sure it gets built early on.
-#
-ifeq "$(HAPPY)" "$(FPTOOLS_TOP_ABS)/happy/src/happy-inplace"
-all :: $(FPTOOLS_TOP_ABS)/happy/src/happy-inplace
-
-$(FPTOOLS_TOP_ABS)/happy/src/happy-inplace : glafp-utils
- cd happy && make boot all