blob: 9a641c0c98329b27af7449ed750cf8edeba5fe03 (
plain) (
tree)
|
|
VERSION = 1.1.0
LUA_VERSION = 5.2
prefix ?= /usr
sharedir ?= $(prefix)/share
luasharedir ?= $(sharedir)/lua/$(LUA_VERSION)
bindir ?= $(prefix)/bin
aportsfiles = \
abuild.lua \
apkrepo.lua \
db.lua \
dump.lua \
pkg.lua
binfiles = buildrepo.lua ap.lua
all:
@echo "To install run:"
@echo " make install DESTDIR=<targetroot>"
install: $(addprefix bin/,$(binfiles)) $(addprefix aports/,$(aportsfiles))
install -d $(DESTDIR)$(luasharedir)/aports \
$(DESTDIR)$(bindir)
install -m644 $(addprefix aports/,$(aportsfiles)) \
$(DESTDIR)$(luasharedir)/aports/
for file in $(binfiles); do \
install -m755 bin/$$file $(DESTDIR)$(bindir)/$${file%.lua} || exit 1; \
done
check: lint
lint:
luacheck aports bin
|