[pbs-devel] [POC proxmox-backup 3/4] Makefile: switch path based on build mode by using COMPILEDIR

Christian Ebner c.ebner at proxmox.com
Sat Sep 28 11:42:55 CEST 2024


Signed-off-by: Christian Ebner <c.ebner at proxmox.com>
---
 Makefile | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index 00e7f7401..691dd2aad 100644
--- a/Makefile
+++ b/Makefile
@@ -230,8 +230,8 @@ upload: $(SERVER_DEB) $(CLIENT_DEB) $(RESTORE_DEB) $(DOC_DEB)
 
 .PHONY: proxmox-backup-client-static
 proxmox-backup-client-static:
-	mkdir -p target/release/deps/ && \
-          echo '!<arch>' > target/release/deps/libsystemd.a # workaround for to greedy linkage and proxmox-systemd
+	mkdir -p $(COMPILEDIR)/deps/ && \
+          echo '!<arch>' > $(COMPILEDIR)/deps/libsystemd.a # workaround for to greedy linkage and proxmox-systemd
 	RUSTFLAGS='-C target-feature=+crt-static -C strip=debuginfo' \
         $(CARGO) build $(CARGO_BUILD_ARGS) \
           --package proxmox-backup-client --bin proxmox-backup-client \
-- 
2.39.5





More information about the pbs-devel mailing list