From 45de0579207becbf742c56e21f44446abde2b10e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Wed, 27 Apr 2011 10:23:27 +0200 Subject: 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. --- src/Makefile.am | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index c1915f7f7..d697e78ea 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -96,10 +96,12 @@ $(HUGE): echo "void hugehelp(void) {}" >>$(HUGE) endif -if CURLDEBUG -# for debug builds, we scan the sources on all regular make invokes # ignore hugehelp.c since it is generated source code and it plays by slightly # different rules! -all-local: +checksrc: @@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/src -Whugehelp.c $(curl_SOURCES) + +if CURLDEBUG +# for debug builds, we scan the sources on all regular make invokes +all-local: checksrc endif -- cgit v1.2.3