]> git.proxmox.com Git - proxmox.git/blobdiff - Makefile
rrd: spell out hard to understand abbreviations in public types
[proxmox.git] / Makefile
index dfa5e5deb1976c145d78f6672bf04fb0c9e24bb2..6edca1021abf3367aa592319f7e3ef1c181d1082 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,6 @@
 # Shortcut for common operations:
 
-CRATES = \
-        proxmox \
-        proxmox-api-macro \
-        proxmox-async \
-        proxmox-borrow \
-        proxmox-http \
-        proxmox-io \
-        proxmox-lang \
-        proxmox-router \
-        proxmox-schema \
-        proxmox-serde \
-        proxmox-shared-memory \
-        proxmox-section-config \
-        proxmox-sortable-macro \
-        proxmox-sys \
-        proxmox-tfa \
-        proxmox-time \
-        proxmox-uuid
+CRATES != /usr/bin/cargo metadata --no-deps --format-version=1 | jq -r .workspace_members'[]' | awk '{ print $$1 }'
 
 # By default we just run checks:
 .PHONY: all
@@ -28,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)
 
@@ -41,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 $@
@@ -68,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:
@@ -79,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