aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-15 13:48:11 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-15 13:48:11 +0000
commit4fef37bb81b5bb54264e8ff5e0e02a8ede56c7eb (patch)
treedbd07a88492870f22e6fc637edd7d0f7ef267f3c /Makefile
parent4ad2659b71bdd8e4e930e50abb183eddac5e9e01 (diff)
downloadapk-tools-4fef37bb81b5bb54264e8ff5e0e02a8ede56c7eb.tar.gz
apk-tools-4fef37bb81b5bb54264e8ff5e0e02a8ede56c7eb.tar.bz2
apk-tools-4fef37bb81b5bb54264e8ff5e0e02a8ede56c7eb.tar.xz
Makefile: use $(PACKAGE) variable for package name
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 7 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 85b39fd..07e99c1 100644
--- a/Makefile
+++ b/Makefile
@@ -7,6 +7,7 @@
# 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.
+PACKAGE := apk-tools
VERSION := 2.0_pre1
SVN_REV := $(shell svn info 2> /dev/null | grep ^Revision | cut -d ' ' -f 2)
@@ -54,13 +55,13 @@ install::
clean::
rm -rf $(TARBALL)
-TARBALL := apk-tools-$(VERSION).tar.bz2
+TARBALL := $(PACKAGE)-$(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
+ rm -rf $(PACKAGE)
+ git clone . $(PACKAGE)
+ cd $(PACKAGE) && (cd .. && git diff) | patch -p1
+ tar -cjf $@ $(PACKAGE)
+ rm -rf $(PACKAGE)
.EXPORT_ALL_VARIABLES: