diff --git a/Makefile b/Makefile index eb197cf3..bc4d96f1 100644 --- a/Makefile +++ b/Makefile @@ -5,7 +5,7 @@ $(shell echo "$(1)" | tr '[:lower:]' '[:upper:]') endef ifeq ($(BUILD_MODE), release) -CARGO_BUILD_ARGS += --release +CARGO_BUILD_ARGS += --release --offline endif .PHONY: all diff --git a/pmg-rs/Makefile b/pmg-rs/Makefile index 69b27987..22a5dbc6 100644 --- a/pmg-rs/Makefile +++ b/pmg-rs/Makefile @@ -1,4 +1,4 @@ -include /usr/share/dpkg/default.mk +#include /usr/share/dpkg/default.mk PACKAGE=libpmg-rs-perl @@ -24,7 +24,7 @@ PM_FILES := \ PMG/RS/TFA.pm ifeq ($(BUILD_MODE), release) -CARGO_BUILD_ARGS += --release +CARGO_BUILD_ARGS += --release --offline endif all: @@ -37,7 +37,7 @@ endif .PHONY: build build: rm -rf build - cargo build --release + cargo build --release --offline rsync -a debian Makefile Cargo.toml Cargo.lock src target PMG build/ .PHONY: install diff --git a/pve-rs/Makefile b/pve-rs/Makefile index 0b53d4d2..1bcd5c48 100644 --- a/pve-rs/Makefile +++ b/pve-rs/Makefile @@ -1,4 +1,4 @@ -include /usr/share/dpkg/default.mk +#include /usr/share/dpkg/default.mk PACKAGE=libpve-rs-perl export PERLMOD_PRODUCT=PVE @@ -25,7 +25,7 @@ PM_FILES := \ PVE/RS/TFA.pm ifeq ($(BUILD_MODE), release) -CARGO_BUILD_ARGS += --release +CARGO_BUILD_ARGS += --release --offline endif all: @@ -38,7 +38,7 @@ endif .PHONY: build build: rm -rf build - cargo build --release + cargo build --release --offline rsync -a debian Makefile Cargo.toml Cargo.lock src target PVE build/ .PHONY: install