mirror of
https://git.proxmox.com/git/proxmox-mail-forward
synced 2025-04-28 15:32:11 +00:00
buildsys: use full DEB_VERSION and correct DEB_HOST_ARCH
Signed-off-by: Thomas Lamprecht <t.lamprecht@proxmox.com>
This commit is contained in:
parent
5656d25730
commit
231e6a6e7b
14
Makefile
14
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
|
||||
|
Loading…
Reference in New Issue
Block a user