buildsys: deb: always build locally first

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-02-27 11:43:15 +00:00
parent 0ffbccce5e
commit 051387143b
1 changed files with 2 additions and 2 deletions

View File

@ -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 ;)