]> git.proxmox.com Git - proxmox-mail-forward.git/commitdiff
buildsys: use full DEB_VERSION and correct DEB_HOST_ARCH
authorThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 26 May 2023 15:10:46 +0000 (17:10 +0200)
committerThomas Lamprecht <t.lamprecht@proxmox.com>
Fri, 26 May 2023 15:21:51 +0000 (17:21 +0200)
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
Makefile

index 286086474048941265e25a0b446ba5c1fff381e3..ee0510e654c4fce14bc7cd34d16d41f58068c383 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -4,6 +4,12 @@ include /usr/share/dpkg/architecture.mk
 PACKAGE=proxmox-mail-forward
 BUILDDIR ?= $(PACKAGE)-$(DEB_VERSION)
 
+DSC=rust-$(PACKAGE)_$(DEB_VERSION_UPSTREAM).dsc
+DEB=$(PACKAGE)_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
+DBG_DEB=$(PACKAGE)-dbgsym_$(DEB_VERSION)_$(DEB_HOST_ARCH).deb
+
+DEBS=$(DEB) $(DBG_DEB)
+
 ifeq ($(BUILD_MODE), release)
 CARGO_BUILD_ARGS += --release
 COMPILEDIR := target/release
@@ -13,12 +19,6 @@ endif
 
 CARGO ?= cargo
 
-DEB=$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
-DBG_DEB=$(PACKAGE)-dbgsym_$(DEB_VERSION_UPSTREAM_REVISION)_$(DEB_BUILD_ARCH).deb
-DSC=rust-$(PACKAGE)_$(DEB_VERSION_UPSTREAM_REVISION).dsc
-
-DEBS=$(DEB) $(DBG_DEB)
-
 $(BUILDDIR):
        rm -rf $@ $@.tmp && mkdir $@.tmp
        cp -a debian Cargo.toml src Makefile .cargo $@.tmp
@@ -54,7 +54,7 @@ install: cargo-build
 
 .PHONY: upload
 upload: $(DEBS)
-       tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product "pve,pbs" --dist bullseye --arch $(DEB_BUILD_ARCH)
+       tar cf - $(DEBS) | ssh -X repoman@repo.proxmox.com -- upload --product "pve,pbs" --dist bullseye --arch $(DEB_HOST_ARCH)
 
 .PHONY: distclean
 distclean: clean