summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpanne <unknown>2004-09-21 17:49:22 +0000
committerpanne <unknown>2004-09-21 17:49:22 +0000
commita60e671bc05b648bc8291ec74d238ccb4b3c458b (patch)
tree1821d1468409a7ab85e4d25355f8d3699e79ce1f /Makefile
parent9a252aec34c0b13e4da919dee58a7164a4928c6e (diff)
downloadhaskell-a60e671bc05b648bc8291ec74d238ccb4b3c458b.tar.gz
[project @ 2004-09-21 17:49:22 by panne]
* Added new target for creating *.bz2 source distributions * Cleanup *.tar.gz / *.tar.bz2 when things go wrong
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index bd870cbd07..a70d3f4495 100644
--- a/Makefile
+++ b/Makefile
@@ -404,8 +404,11 @@ dist-package :: dist-package-tar-gz
SRC_DIST_PATHS = $(patsubst %, $(SRC_DIST_NAME)/%, $(SRC_DIST_FILES) $(SRC_DIST_DIRS))
+dist-package-tar-bz2 ::
+ BZIP2=-9 $(TAR) chjf $(SRC_DIST_NAME)-src.tar.bz2 $(SRC_DIST_NAME) || $(RM) $(SRC_DIST_NAME)-src.tar.bz2
+
dist-package-tar-gz ::
- $(TAR) chzf $(SRC_DIST_NAME)-src.tar.gz $(SRC_DIST_NAME)
+ $(TAR) chzf $(SRC_DIST_NAME)-src.tar.gz $(SRC_DIST_NAME) || $(RM) $(SRC_DIST_NAME)-src.tar.gz
dist-package-zip ::
cd ..; $(LN_S) $(FPTOOLS_TOP_ABS) $(SRC_DIST_NAME) && \