summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 23fff5268efd3fdae1842ff6613b15f5abf2aadb (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
LUA = lua5.3

aports = $(HOME)/aports
gitbranch = $(shell git -C $(aports) rev-parse --abbrev-ref HEAD)
rel = v$(gitbranch:-stable=)


targets = $(rel)/main.yaml $(rel)/community.yaml

all: $(targets)

repo=$(notdir $(basename $@))

$(rel)/%.yaml:
	$(LUA) secfixes.lua --repo $(repo) --release $(rel) \
		$(aports)/$(repo)/*/APKBUILD > $@.tmp \
		&& $(LUA) secfixes.lua --verify $@.tmp \
		&& mv $@.tmp $@

clean:
	rm -f $(targets)

.PHONY: clean