summarylogtreecommitdiffstats
path: root/Makefile
blob: 4cc5598534c52860259269d946aecaab36d7224c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
include .SRCINFO

ARTIFACTS := $(pkgname)-$(pkgver)-$(pkgrel)-$(arch).pkg.tar.zst $(pkgname)-debug-$(pkgver)-$(pkgrel)-$(arch).pkg.tar.zst

.PHONY: build all clean
all: $(ARTIFACTS)
build:
	docker build -t $(pkgbase) .
%.pkg.tar.zst: build
	docker run $(pkgbase) cat $(@F) >$@
.SRCINFO: PKGBUILD
	makepkg --printsrcinfo >$@
clean: F = $(wildcard $(ARTIFACTS))
clean:
	$(if $(strip $F),$(RM) -- $F,)