From ed1c4a75d00bac8e2d1ded9fff27f8c4d7a379a4 Mon Sep 17 00:00:00 2001 From: x99laine Date: Thu, 25 Nov 2004 20:18:39 +0000 Subject: [PATCH] modify Makefile to add "make bzdist" on top of the existing "make dist" --- Makefile | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 54bb7ba..92db413 100644 --- a/Makefile +++ b/Makefile @@ -1,4 +1,4 @@ -# $Id: Makefile,v 1.4 2004-11-24 10:12:46 x2000habouzit Exp $ +# $Id: Makefile,v 1.5 2004-11-25 20:18:39 x99laine Exp $ ################################################################################ # definitions @@ -18,6 +18,8 @@ build: pkg-build dist: clean pkg-dist +bzdist: clean pkg-bzdist + clean: rm -rf locale include/xorg.globals.inc.php @@ -43,8 +45,7 @@ devel: build cache templates_c pkg-build: include/xorg.globals.inc.php # make -C po -pkg-dist: pkg-build - rm -rf $(PKG_DIST) $(PKG_DIST).tar.gz +$(PKG_DIST): pkg-build mkdir $(PKG_DIST) cp -a $(PKG_FILES) $(PKG_DIST) for dir in `find $(PKG_DIRS) -type d $(VCS_FILTER)`; \ @@ -52,9 +53,16 @@ pkg-dist: pkg-build mkdir -p $(PKG_DIST)/$$dir; \ find $$dir -type f -maxdepth 1 -exec cp {} $(PKG_DIST)/$$dir \; ; \ done + +pkg-dist: $(PKG_DIST) + rm -f $(PKG_DIST).tar.gz tar czf $(PKG_DIST).tar.gz $(PKG_DIST) rm -rf $(PKG_DIST) +pkg-bzdist: $(PKG_DIST) + rm -f $(PKG_DIST).tar.bz2 + tar cjf $(PKG_DIST).tar.bz2 $(PKG_DIST) + rm -rf $(PKG_DIST) .PHONY: build dist clean pkg-build pkg-dist -- 2.1.4