mirror of
https://git.proxmox.com/git/vma-to-pbs
synced 2025-04-28 10:38:53 +00:00
build: properly use cargo wrapper
Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
2f3b92870a
commit
7e4d1459b1
4
Makefile
4
Makefile
@ -41,11 +41,11 @@ all: build
|
||||
|
||||
build: $(TARGETDIR)/vma-to-pbs
|
||||
$(TARGETDIR)/vma-to-pbs: Cargo.toml src/
|
||||
cargo build $(CARGO_BUILD_ARGS)
|
||||
$(CARGO) build $(CARGO_BUILD_ARGS)
|
||||
|
||||
.PHONY: install
|
||||
install: $(TARGETDIR)/vma-to-pbs
|
||||
install -D -m 0755 $(TARGETDIR)/vma-to-pbs $(DESTDIR)/usr/bin/vma-to-pbs
|
||||
$(CARGO) install
|
||||
|
||||
.PHONY: build-dir
|
||||
build-dir:
|
||||
|
4
debian/rules
vendored
4
debian/rules
vendored
@ -8,13 +8,13 @@ include /usr/share/rustc/architecture.mk
|
||||
|
||||
export BUILD_MODE=release
|
||||
|
||||
CARGO=/usr/share/cargo/bin/cargo
|
||||
export CARGO=/usr/share/cargo/bin/cargo
|
||||
|
||||
export CFLAGS CXXFLAGS CPPFLAGS LDFLAGS
|
||||
export DEB_HOST_RUST_TYPE DEB_HOST_GNU_TYPE
|
||||
export CARGO_HOME = $(CURDIR)/debian/cargo_home
|
||||
|
||||
export DEB_CARGO_CRATE=proxmox-vma-to-pbs$(DEB_VERSION_UPSTREAM)
|
||||
export DEB_CARGO_CRATE=proxmox-vma-to-pbs_$(DEB_VERSION_UPSTREAM)
|
||||
export DEB_CARGO_PACKAGE=proxmox-vma-to-pbs
|
||||
|
||||
%:
|
||||
|
Loading…
Reference in New Issue
Block a user