mirror of
https://gitlab.alpinelinux.org/alpine/abuild.git
synced 2024-12-24 16:02:23 +00:00
33 lines
669 B
Makefile
33 lines
669 B
Makefile
|
|
PACKAGE=abuild
|
|
VERSION=0.3
|
|
DISTFILES=Makefile abuild abuild.conf APKBUILD.proto
|
|
|
|
prefix ?= /usr
|
|
sysconfdir ?= /etc
|
|
|
|
P=$(PACKAGE)-$(VERSION)
|
|
|
|
help:
|
|
@echo "$(P) makefile"
|
|
@echo "usage: make install [ DESTDIR=<path> ]"
|
|
@echo " make dist"
|
|
|
|
install: abuild abuild.conf APKBUILD.proto
|
|
mkdir -p $(DESTDIR)/$(prefix)/bin $(DESTDIR)/$(sysconfdir) \
|
|
$(DESTDIR)/$(prefix)/share/abuild
|
|
cp abuild $(DESTDIR)/$(prefix)/bin/
|
|
cp abuild.conf $(DESTDIR)/$(sysconfdir)/
|
|
cp APKBUILD.proto $(DESTDIR)/$(prefix)/share/abuild
|
|
|
|
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
|