2008-10-18 08:09:24 +00:00
|
|
|
|
|
|
|
PACKAGE=abuild
|
|
|
|
VERSION=0.3
|
2008-10-30 15:55:25 +00:00
|
|
|
DISTFILES=Makefile abuild abuild.conf APKBUILD.proto
|
2008-10-18 08:09:24 +00:00
|
|
|
|
|
|
|
prefix ?= /usr
|
|
|
|
sysconfdir ?= /etc
|
|
|
|
|
|
|
|
P=$(PACKAGE)-$(VERSION)
|
|
|
|
|
|
|
|
help:
|
|
|
|
@echo "$(P) makefile"
|
|
|
|
@echo "usage: make install [ DESTDIR=<path> ]"
|
|
|
|
@echo " make dist"
|
|
|
|
|
2008-10-30 15:55:25 +00:00
|
|
|
install: abuild abuild.conf APKBUILD.proto
|
|
|
|
mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir) \
|
|
|
|
$(DESTDIR)/$(prefix)/share/abuild
|
2008-10-18 08:09:24 +00:00
|
|
|
cp abuild $(DESTDIR)/$(prefix)/bin/
|
|
|
|
cp abuild.conf $(DESTDIR)/$(sysconfdir)/
|
2008-10-30 15:55:25 +00:00
|
|
|
cp APKBUILD.proto $(DESTDIR)/$(prefix)/share/abuild
|
2008-10-18 08:09:24 +00:00
|
|
|
|
|
|
|
dist: $(P).tar.gz
|
|
|
|
|
|
|
|
$(P).tar.gz: $(DISTFILES)
|
|
|
|
rm -rf $(P)
|
|
|
|
mkdir -p $(P)
|
|
|
|
cp $(DISTFILES) $(P)/
|
|
|
|
tar -czf $@ $(P)
|
|
|
|
rm -rf $(P)
|
|
|
|
|
|
|
|
.PHONY: install dist
|