]> git.proxmox.com Git - proxmox-backup.git/commitdiff
buildsys: deb: always build locally first
authorWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 27 Feb 2019 11:43:15 +0000 (11:43 +0000)
committerWolfgang Bumiller <w.bumiller@proxmox.com>
Wed, 27 Feb 2019 11:43:34 +0000 (11:43 +0000)
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
Makefile

index 173b488bf5616f58f051f5f71e2bb909d8ed4fe9..0af4a13533fbf76cdcb619243c59465028895901 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -57,8 +57,8 @@ doc:
 .PHONY: build
 build:
        rm -rf build
-       rsync -a debian Makefile defines.mk Cargo.toml src $(SUBDIRS) build/
-       if test -d target; then cp Cargo.lock build/ && rsync -a target build/; fi
+       cargo build --release
+       rsync -a debian Makefile defines.mk Cargo.toml Cargo.lock src target $(SUBDIRS) build/
        $(foreach i,$(SUBDIRS), \
            $(MAKE) -C build/$(i) clean ;)