Makefile: use $(PACKAGE) variable for package name

cute-signatures
Natanael Copa 2009-01-15 13:48:11 +00:00
parent 4ad2659b71
commit 4fef37bb81
1 changed files with 7 additions and 6 deletions

View File

@ -7,6 +7,7 @@
# under the terms of the GNU General Public License version 3 as published # under the terms of the GNU General Public License version 3 as published
# by the Free Software Foundation. See http://www.gnu.org/ for details. # by the Free Software Foundation. See http://www.gnu.org/ for details.
PACKAGE := apk-tools
VERSION := 2.0_pre1 VERSION := 2.0_pre1
SVN_REV := $(shell svn info 2> /dev/null | grep ^Revision | cut -d ' ' -f 2) SVN_REV := $(shell svn info 2> /dev/null | grep ^Revision | cut -d ' ' -f 2)
@ -54,13 +55,13 @@ install::
clean:: clean::
rm -rf $(TARBALL) rm -rf $(TARBALL)
TARBALL := apk-tools-$(VERSION).tar.bz2 TARBALL := $(PACKAGE)-$(VERSION).tar.bz2
dist: $(TARBALL) dist: $(TARBALL)
$(TARBALL): $(TARBALL):
rm -rf apk-tools rm -rf $(PACKAGE)
git clone . apk-tools git clone . $(PACKAGE)
cd apk-tools && (cd .. && git diff) | patch -p1 cd $(PACKAGE) && (cd .. && git diff) | patch -p1
tar -cjf $@ apk-tools tar -cjf $@ $(PACKAGE)
rm -rf apk-tools rm -rf $(PACKAGE)
.EXPORT_ALL_VARIABLES: .EXPORT_ALL_VARIABLES: