update Makefile

This commit is contained in:
Алексей Шабалин 2022-03-06 14:26:11 +03:00
parent a483f7475e
commit 65c34958ec
3 changed files with 7 additions and 7 deletions

View File

@ -5,7 +5,7 @@ $(shell echo "$(1)" | tr '[:lower:]' '[:upper:]')
endef endef
ifeq ($(BUILD_MODE), release) ifeq ($(BUILD_MODE), release)
CARGO_BUILD_ARGS += --release CARGO_BUILD_ARGS += --release --offline
endif endif
.PHONY: all .PHONY: all

View File

@ -1,4 +1,4 @@
include /usr/share/dpkg/default.mk #include /usr/share/dpkg/default.mk
PACKAGE=libpmg-rs-perl PACKAGE=libpmg-rs-perl
@ -24,7 +24,7 @@ PM_FILES := \
PMG/RS/TFA.pm PMG/RS/TFA.pm
ifeq ($(BUILD_MODE), release) ifeq ($(BUILD_MODE), release)
CARGO_BUILD_ARGS += --release CARGO_BUILD_ARGS += --release --offline
endif endif
all: all:
@ -37,7 +37,7 @@ endif
.PHONY: build .PHONY: build
build: build:
rm -rf build rm -rf build
cargo build --release cargo build --release --offline
rsync -a debian Makefile Cargo.toml Cargo.lock src target PMG build/ rsync -a debian Makefile Cargo.toml Cargo.lock src target PMG build/
.PHONY: install .PHONY: install

View File

@ -1,4 +1,4 @@
include /usr/share/dpkg/default.mk #include /usr/share/dpkg/default.mk
PACKAGE=libpve-rs-perl PACKAGE=libpve-rs-perl
export PERLMOD_PRODUCT=PVE export PERLMOD_PRODUCT=PVE
@ -25,7 +25,7 @@ PM_FILES := \
PVE/RS/TFA.pm PVE/RS/TFA.pm
ifeq ($(BUILD_MODE), release) ifeq ($(BUILD_MODE), release)
CARGO_BUILD_ARGS += --release CARGO_BUILD_ARGS += --release --offline
endif endif
all: all:
@ -38,7 +38,7 @@ endif
.PHONY: build .PHONY: build
build: build:
rm -rf build rm -rf build
cargo build --release cargo build --release --offline
rsync -a debian Makefile Cargo.toml Cargo.lock src target PVE build/ rsync -a debian Makefile Cargo.toml Cargo.lock src target PVE build/
.PHONY: install .PHONY: install