X-Git-Url: https://git.proxmox.com/?a=blobdiff_plain;f=Makefile;h=43a17db3bee132d933032d84e8b236aea256cfc4;hb=5d9e33d1d9257bf654012d39390f40bf746aeebf;hp=9241015277b79cd5904f6b8aabc6b36cfbf7f4a8;hpb=7c7e2f886ce6b055183d5f162f558530fa490a58;p=proxmox.git diff --git a/Makefile b/Makefile index 92410152..43a17db3 100644 --- a/Makefile +++ b/Makefile @@ -1,26 +1,6 @@ # Shortcut for common operations: -CRATES = \ - proxmox-api-macro \ - proxmox-async \ - proxmox-borrow \ - proxmox-compression \ - proxmox-http \ - proxmox-io \ - proxmox-lang \ - proxmox-metrics \ - proxmox-rest-server \ - proxmox-router \ - proxmox-schema \ - proxmox-serde \ - proxmox-shared-memory \ - proxmox-section-config \ - proxmox-sortable-macro \ - proxmox-subscription \ - proxmox-sys \ - proxmox-tfa \ - proxmox-time \ - proxmox-uuid +CRATES != cargo metadata --no-deps --format-version=1 | jq -r .workspace_members'[]' | awk '{ print $$1 }' # By default we just run checks: .PHONY: all @@ -31,6 +11,11 @@ deb: $(foreach c,$(CRATES), $c-deb) echo $(foreach c,$(CRATES), $c-deb) lintian build/*.deb +.PHONY: dsc +dsc: $(foreach c,$(CRATES), $c-dsc) + echo $(foreach c,$(CRATES), $c-dsc) + lintian build/*.dsc + .PHONY: autopkgtest autopkgtest: $(foreach c,$(CRATES), $c-autopkgtest) @@ -44,6 +29,10 @@ dinstall: ./build.sh $* touch $@ +%-dsc: + BUILDCMD='dpkg-buildpackage -S -us -uc -d' ./build.sh $* + touch $@ + %-autopkgtest: autopkgtest build/$* build/*.deb -- null touch $@ @@ -71,7 +60,8 @@ doc: .PHONY: clean clean: cargo clean - rm -rf build *-deb *-autopkgtest + rm -rf build/ + rm -f -- *-deb *-dsc *-autopkgtest *.build *.buildinfo *.changes .PHONY: update update: @@ -82,4 +72,4 @@ update: dcmd --deb rust-$*_*.changes \ | grep -v '.changes$$' \ | tar -cf "$@.tar" -T-; \ - cat "$@.tar" | ssh -X repoman@repo.proxmox.com upload --product devel --dist bullseye + cat "$@.tar" | ssh -X repoman@repo.proxmox.com upload --product devel --dist bookworm