Makefile: new dist target
parent
cfdef51bee
commit
4ad2659b71
16
Makefile
16
Makefile
|
@ -51,10 +51,16 @@ install::
|
||||||
$(INSTALLDIR) $(DESTDIR)$(DOCDIR)
|
$(INSTALLDIR) $(DESTDIR)$(DOCDIR)
|
||||||
$(INSTALL) README $(DESTDIR)$(DOCDIR)
|
$(INSTALL) README $(DESTDIR)$(DOCDIR)
|
||||||
|
|
||||||
dist:
|
clean::
|
||||||
svn-clean
|
rm -rf $(TARBALL)
|
||||||
(TOP=`pwd` && cd .. && ln -s $$TOP apk-tools-$(VERSION) && \
|
|
||||||
tar --exclude '*/.svn*' -cjvf apk-tools-$(VERSION).tar.bz2 apk-tools-$(VERSION)/* && \
|
TARBALL := apk-tools-$(VERSION).tar.bz2
|
||||||
rm apk-tools-$(VERSION))
|
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:
|
.EXPORT_ALL_VARIABLES:
|
||||||
|
|
Loading…
Reference in New Issue