summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard Mortier <mort@cantab.net>2019-11-08 15:21:14 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2019-11-13 10:54:35 +0100
commit25112fc4a95de798c5fd534f68053b871982091d (patch)
tree2b5fed4b5d1d679be9d5b2d3b010efb5f918e929
parentbc60eddeaadece7bc6014a0b01ac69ca176cb370 (diff)
downloadalpine-secdb-25112fc4a95de798c5fd534f68053b871982091d.tar.bz2
alpine-secdb-25112fc4a95de798c5fd534f68053b871982091d.tar.xz
make: add dependencies target; take `aports` from environment
Signed-off-by: Richard Mortier <mort@cantab.net>
-rw-r--r--Makefile11
1 files changed, 7 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 23fff52..13c1316 100644
--- a/Makefile
+++ b/Makefile
@@ -1,7 +1,7 @@
LUA = lua5.3
-aports = $(HOME)/aports
-gitbranch = $(shell git -C $(aports) rev-parse --abbrev-ref HEAD)
+APORTS ?= $(HOME)/aports
+gitbranch = $(shell git -C $(APORTS) rev-parse --abbrev-ref HEAD)
rel = v$(gitbranch:-stable=)
@@ -13,11 +13,14 @@ repo=$(notdir $(basename $@))
$(rel)/%.yaml:
$(LUA) secfixes.lua --repo $(repo) --release $(rel) \
- $(aports)/$(repo)/*/APKBUILD > $@.tmp \
+ $(APORTS)/$(repo)/*/APKBUILD > $@.tmp \
&& $(LUA) secfixes.lua --verify $@.tmp \
&& mv $@.tmp $@
+.PHONY: clean
clean:
rm -f $(targets)
-.PHONY: clean
+.PHONY: depend depends
+depend depends:
+ sudo apk add -U --virtual .secdb-depends lua5.3 lua5.3-lyaml lua5.3-optarg