From d21302d39c309a3aadda27cb9f6ddf66b05ebf02 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Mon, 11 Mar 2019 17:49:07 +0100 Subject: [PATCH] make style: test for astyle presence --- Makefile | 1 + 1 file changed, 1 insertion(+) diff --git a/Makefile b/Makefile index 27c571ad9..14bf98074 100644 --- a/Makefile +++ b/Makefile @@ -106,6 +106,7 @@ endif print-%: ; @echo $* = $($*) style: + @which astyle >/dev/null || ( echo "Please install 'astyle' package first" ; exit 1 ) find . \( -name "*.[ch]" -or -name "*.cpp" -or -name "*.lua" -or -name "Makefile" \) -exec perl -pi -e 's/[ \t\r]+$$//' {} \; find . \( -name "*.[ch]" -or -name "*.cpp" \) -exec astyle --formatted --mode=c --suffix=none \ --indent=spaces=4 --indent-switches --indent-preprocessor \