buildsys: re-enable build caching for deb target

Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
Wolfgang Bumiller 2019-02-01 10:18:50 +01:00
parent 18fad34433
commit 7ba5fb4aef

View File

@ -49,10 +49,12 @@ test:
cargo test $(CARGO_BUILD_ARGS)
# always re-create this dir
# but also copy the local target/ dir as a build-cache
.PHONY: build
build:
rm -rf build
rsync -a debian Makefile defines.mk Cargo.toml src $(SUBDIRS) build/
test -d target && rsync -a target build/ || true
.PHONY: deb
deb: $(DEB)