Change-Id: I65a7412fbf76ac2c52fbe123420b574127d13d83
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
#!/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
#!/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