diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-15 13:06:02 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-01-15 13:06:02 +0000 |
commit | 4ad2659b71bdd8e4e930e50abb183eddac5e9e01 (patch) | |
tree | 452031929966c688337ea72df3cd58d5cc2d2b47 /Makefile | |
parent | cfdef51bee5f2c4ccb95e3bb3c929df13b9fc54a (diff) | |
download | apk-tools-4ad2659b71bdd8e4e930e50abb183eddac5e9e01.tar.gz apk-tools-4ad2659b71bdd8e4e930e50abb183eddac5e9e01.tar.bz2 apk-tools-4ad2659b71bdd8e4e930e50abb183eddac5e9e01.tar.xz apk-tools-4ad2659b71bdd8e4e930e50abb183eddac5e9e01.zip |
Makefile: new dist target
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -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: |