buildsys: re-enable build caching for deb target
Signed-off-by: Wolfgang Bumiller <w.bumiller@proxmox.com>
This commit is contained in:
parent
18fad34433
commit
7ba5fb4aef
2
Makefile
2
Makefile
@ -49,10 +49,12 @@ test:
|
|||||||
cargo test $(CARGO_BUILD_ARGS)
|
cargo test $(CARGO_BUILD_ARGS)
|
||||||
|
|
||||||
# always re-create this dir
|
# always re-create this dir
|
||||||
|
# but also copy the local target/ dir as a build-cache
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build:
|
build:
|
||||||
rm -rf build
|
rm -rf build
|
||||||
rsync -a debian Makefile defines.mk Cargo.toml src $(SUBDIRS) build/
|
rsync -a debian Makefile defines.mk Cargo.toml src $(SUBDIRS) build/
|
||||||
|
test -d target && rsync -a target build/ || true
|
||||||
|
|
||||||
.PHONY: deb
|
.PHONY: deb
|
||||||
deb: $(DEB)
|
deb: $(DEB)
|
||||||
|
Loading…
Reference in New Issue
Block a user