Mike Gerwitz

Activist for User Freedom

aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
Diffstat (limited to 'tamer/Makefile.am')
-rw-r--r--tamer/Makefile.am10
1 files changed, 8 insertions, 2 deletions
diff --git a/tamer/Makefile.am b/tamer/Makefile.am
index 2cc502c..3248bc6 100644
--- a/tamer/Makefile.am
+++ b/tamer/Makefile.am
@@ -18,7 +18,7 @@
.DELETE_ON_ERROR:
-.PHONY: all
+.PHONY: all fix fmt
CARGO_BUILD_FLAGS=@CARGO_BUILD_FLAGS@
@@ -31,6 +31,12 @@ html-am:
# note that 'cargo check' is something else; see 'cargo --help'
test: check
-check-am:
+check-am: check-fmt
@CARGO@ test
+check-fmt:
+ @CARGO@ fmt -- --check
+
+fix: fmt
+fmt:
+ @CARGO@ fmt