From cda15843fabd7a05a6a3eabd44fc72e4403378cf Mon Sep 17 00:00:00 2001 From: Thomas Lamprecht Date: Sat, 27 May 2023 17:54:01 +0200 Subject: [PATCH] buildsys: derive upload dist automatically Signed-off-by: Thomas Lamprecht --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index a09ce14..a673eec 100644 --- a/Makefile +++ b/Makefile @@ -84,7 +84,8 @@ dinstall: $(DEBS) dpkg -i $(DEBS) .PHONY: upload +upload: UPLOAD_DIST ?= $(DEB_DISTRIBUTION) upload: $(DEBS) # check if working directory is clean git diff --exit-code --stat && git diff --exit-code --stat --staged - tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com upload --product pve --dist bullseye + tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com upload --product pve --dist $(UPLOAD_DIST)