tests ?= --workspace
-all: cargo-build $(SUBDIRS)
+all: $(SUBDIRS)
.PHONY: $(SUBDIRS)
$(SUBDIRS):
$(foreach i,$(SUBDIRS), \
$(MAKE) -C $(i) clean ;)
$(CARGO) clean
+ rm -f .do-cargo-build
find . -name '*~' -exec rm {} ';'
# allows one to avoid running cargo clean when one just wants to tidy up after a packgae build
dpkg -i $^
# make sure we build binaries before docs
-docs: cargo-build
+docs: $(COMPILEDIR)/dump-catalog-shell-cli $(COMPILEDIR)/docgen
.PHONY: cargo-build
cargo-build:
+ rm -f .do-cargo-build
+ $(MAKE) $(COMPILED_BINS)
+
+$(COMPILED_BINS) $(COMPILEDIR)/dump-catalog-shell-cli $(COMPILEDIR)/docgen: .do-cargo-build
+.do-cargo-build:
RUSTFLAGS="--cfg openid" $(CARGO) build $(CARGO_BUILD_ARGS) \
--bin proxmox-backup-api --bin proxmox-backup-proxy \
--bin proxmox-backup-manager --bin docgen
--bin proxmox-tape \
--bin pxar \
--bin sg-tape-cmd
+ touch "$@"
-$(COMPILED_BINS): cargo-build
.PHONY: lint
lint: