]> git.lizzy.rs Git - rust.git/commitdiff
build: Run tidy first before all other check targets
authorHaitao Li <lihaitao@gmail.com>
Wed, 18 Jan 2012 18:41:02 +0000 (02:41 +0800)
committerHaitao Li <lihaitao@gmail.com>
Wed, 18 Jan 2012 18:51:57 +0000 (02:51 +0800)
`make check` executes `tidy` after compile. It reminds me that I've left
long lines or trailing whitespaces only after compilation finshed. That
is too late since I have to recompile only because fixing the trivial
formatting issues.

Run tidy first to avoid potentially unnecessary re-compilation.

mk/tests.mk

index d7f9f21be7fce697af52e334c20ca97171bab535..7cf57c5d7c35d1ab68f6d1420017217b6166afba 100644 (file)
@@ -66,9 +66,9 @@ endif
 # Main test targets
 ######################################################################
 
-check: all tidy check-stage2 \
+check: tidy all check-stage2 \
 
-check-full: all tidy check-stage1 check-stage2 check-stage3 \
+check-full: tidy all check-stage1 check-stage2 check-stage3 \
 
 # Run the tidy script in multiple parts to avoid huge 'echo' commands
 ifdef CFG_NOTIDY