lintian build/*.deb
.PHONY: dinstall
-dinstall: deb
+dinstall:
+ $(MAKE) clean
+ $(MAKE) deb
sudo -k dpkg -i build/librust-*.deb
%-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
# 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
.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