vpp: call 'make checkstyle' instead of checkstyle.sh 64/23364/3
authorDave Wallace <dwallacelf@gmail.com>
Mon, 11 Nov 2019 16:21:28 +0000 (11:21 -0500)
committerPaul Vinciguerra <pvinci@vinciconsulting.com>
Mon, 11 Nov 2019 16:48:26 +0000 (16:48 +0000)
Change-Id: I65a7412fbf76ac2c52fbe123420b574127d13d83
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
jjb/vpp/include-raw-vpp-checkstyle.sh
jjb/vpp/include-raw-vpp-test-checkstyle.sh

index 258c9e7..bc1e408 100644 (file)
@@ -1,7 +1,9 @@
 #!/bin/bash
+# jjb/vpp/include-raw-vpp-checkstyle.sh
 
-if [ -f build-root/scripts/checkstyle.sh ];then
-    build-root/scripts/checkstyle.sh
+if [ "$(grep -E '^checkstyle:' Makefile)" = "checkstyle:" ]
+then
+       make checkstyle
 else
-    echo "Cannot find cat build-root/scripts/checkstyle.sh - skipping checkstyle"
+        echo "Can't find checkstyle target in Makefile - skipping checkstyle"
 fi
index fd44cb6..6cb6fac 100644 (file)
@@ -1,8 +1,9 @@
 #!/bin/bash
+# jjb/vpp/include-raw-vpp-test-checkstyle.sh
 
-if grep '.PHONY: checkstyle' test/Makefile > /dev/null
+if [ "$(grep -E '^test-checkstyle:' Makefile)" = "test-checkstyle:" ]
 then
        make test-checkstyle
 else
-       echo "Can't find checkstyle target in test/Makefile - skipping test checkstyle"
+       echo "Can't find test-checkstyle target in Makefile - skipping test checkstyle"
 fi