summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2009-01-06 15:40:21 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2009-01-06 15:40:21 +0000
commitff1781c349ebaedbe3468fe6f3852c535084cad1 (patch)
treeef0de812da07db2f732eb33d84475ac670ba85a7 /Makefile
parent22cf700b4964667a391c6f54a2b2955f2badbe0c (diff)
downloadabuild-ff1781c349ebaedbe3468fe6f3852c535084cad1.tar.bz2
abuild-ff1781c349ebaedbe3468fe6f3852c535084cad1.tar.xz
abuild: read version from abuild. install buildrepo
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index af8eb01..fe62f54 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
PACKAGE=abuild
-VERSION=0.3
-DISTFILES=Makefile abuild abuild.conf APKBUILD.proto
+VERSION:=$(shell awk -F= '$$1 == "abuild_ver" {print $$2}' abuild)
+DISTFILES=Makefile abuild abuild.conf APKBUILD.proto buildrepo
prefix ?= /usr
sysconfdir ?= /etc
@@ -17,7 +17,7 @@ help:
install: abuild abuild.conf APKBUILD.proto functions.sh
mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir) \
$(DESTDIR)/$(datadir)
- cp abuild $(DESTDIR)/$(prefix)/bin/
+ cp abuild buildrepo $(DESTDIR)/$(prefix)/bin/
cp abuild.conf $(DESTDIR)/$(sysconfdir)/
cp APKBUILD.proto $(DESTDIR)/$(prefix)/share/abuild
cp functions.sh $(DESTDIR)/$(datadir)/