X-Git-Url: http://git.meshlink.io/?p=meshlink;a=blobdiff_plain;f=Makefile.am;h=44a5c8180f3aec9b0a2c6020420d591dfa706f4c;hp=93bc963224fc5a73a60df159c2d42d7874e6dfa2;hb=fec95d1221c2d7e2059d6ba2fe244211ccee95ad;hpb=f13d66f20a227a87075f6456f41b83ce269b67f4 diff --git a/Makefile.am b/Makefile.am index 93bc9632..44a5c818 100644 --- a/Makefile.am +++ b/Makefile.am @@ -20,4 +20,10 @@ ChangeLog: git log > ChangeLog astyle: - astyle --options=.astylerc -nQ src/*.[ch] src/ed25519/e*.[ch] examples/*.[ch] examples/*.cc test/*.[ch] + @astyle --version | grep -q "Version 3" || (echo 'ERROR: astyle version 3 required!' 1>&2 && exit 1) + astyle --options=.astylerc -nQ \ + src/*.[ch] \ + src/ed25519/e*.[ch] \ + examples/*.[ch] \ + examples/*.cc \ + `find test -name '*.[ch]'`