From 4ad2659b71bdd8e4e930e50abb183eddac5e9e01 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Thu, 15 Jan 2009 13:06:02 +0000 Subject: Makefile: new dist target --- Makefile | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 567984b..85b39fd 100644 --- a/Makefile +++ b/Makefile @@ -51,10 +51,16 @@ install:: $(INSTALLDIR) $(DESTDIR)$(DOCDIR) $(INSTALL) README $(DESTDIR)$(DOCDIR) -dist: - svn-clean - (TOP=`pwd` && cd .. && ln -s $$TOP apk-tools-$(VERSION) && \ - tar --exclude '*/.svn*' -cjvf apk-tools-$(VERSION).tar.bz2 apk-tools-$(VERSION)/* && \ - rm apk-tools-$(VERSION)) +clean:: + rm -rf $(TARBALL) + +TARBALL := apk-tools-$(VERSION).tar.bz2 +dist: $(TARBALL) +$(TARBALL): + rm -rf apk-tools + git clone . apk-tools + cd apk-tools && (cd .. && git diff) | patch -p1 + tar -cjf $@ apk-tools + rm -rf apk-tools .EXPORT_ALL_VARIABLES: -- cgit v1.2.3