]> git.meshlink.io Git - utcp/blobdiff - Makefile
Check for astyle version 3 before formatting the code.
[utcp] / Makefile
index faa2f66a3b8e191e36340f3c6d64c466393baae6..6cb1bc9ab5e8bd1716d5e2932e49666ac0c881e8 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -15,6 +15,7 @@ clean:
        rm -f *.o $(BIN)
 
 astyle:
+       @astyle --version | grep -q "Version 3" || (echo 'ERROR: astyle version 3 required!' 1>&2 && exit 1)
        astyle --options=.astylerc -nQ *.c *.h
 
 .PHONY: clean astyle