make fmt make task

Signed-off-by: Erik Hollensbe <git@hollensbe.org>
This commit is contained in:
Erik Hollensbe 2022-04-18 14:18:29 -07:00
parent 17ea66f255
commit ef6512cbea
No known key found for this signature in database
GPG key ID: 4BB0E241A863B389

View file

@ -6,6 +6,10 @@ clean: FORCE
test:
for i in */Cargo.toml; do cd $$(dirname $$i); cargo test || exit 1; cd ..; done
fmt:
set extglob; for i in */Cargo.toml; do cd $$(dirname $$i); rustfmt **/*.rs || exit 1; cd ..; done
FORCE:
.PHONY: test