make: add 'checksrc' as target to check code style

The make target checksrc now works in the root makefile and in both the
src and lib directories.

It is also run automatically on "all" if configure --enable-debug was
used.
This commit is contained in:
Daniel Stenberg
2011-04-27 10:23:27 +02:00
parent aa87f0ab15
commit 45de057920
3 changed files with 14 additions and 6 deletions

View File

@@ -155,3 +155,7 @@ ca-bundle: lib/mk-ca-bundle.pl
ca-firefox: lib/firefox-db2pem.sh
@echo "generate a fresh ca-bundle.crt"
./lib/firefox-db2pem.sh lib/ca-bundle.crt
checksrc:
cd lib && $(MAKE) checksrc
cd src && $(MAKE) checksrc