]> git.proxmox.com Git - proxmox.git/blobdiff - Makefile
api/router: percent decode the components of the uri
[proxmox.git] / Makefile
index 626b5727e83af86ffd8d0ecb2c189e13dcc27a07..963c50720e8978e6302357f30a5691c4c3a47155 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -12,7 +12,9 @@ deb: $(foreach c,$(CRATES), $c-deb)
        lintian build/*.deb
 
 .PHONY: dinstall
-dinstall: deb
+dinstall:
+       $(MAKE) clean
+       $(MAKE) deb
        sudo -k dpkg -i build/librust-*.deb
 
 %-deb:
@@ -21,7 +23,6 @@ dinstall: deb
 
 .PHONY: check
 check:
-       cargo +nightly fmt -- --check
        cargo test
 
 # Run the api-test server, serving the api-test/www/ subdir as 'www' dir over
@@ -32,13 +33,8 @@ apitest:
 
 # Prints a diff between the current code and the one rustfmt would produce
 .PHONY: fmt
-checkfmt:
-       cargo fmt --all -- --check
-
-# Reformat the code (ppply the output of `make checkfmt`)
-.PHONY: fmt
 fmt:
-       cargo fmt --all
+       cargo +nightly fmt -- --check
 
 # Doc without dependencies
 .PHONY: doc
@@ -53,3 +49,10 @@ clean:
 .PHONY: update
 update:
        cargo update
+
+%-upload: %-deb
+       cd build; \
+           dcmd --deb rust-$*_*.changes \
+           | grep -v '.changes$$' \
+           | tar -cf- -T- \
+           | ssh -X repoman@repo.proxmox.com upload --product devel --dist buster