From aa87f0ab15c15784c4d7ee55e8c5972f5353b41e Mon Sep 17 00:00:00 2001 From: Daniel Stenberg Date: Mon, 25 Apr 2011 22:44:39 +0200 Subject: checksrc: whitespace and code style cleanup Make everything adhere to the standards upheld by checksrc.pl and now run checksrc from the makefile on debug builds. --- src/Makefile.am | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'src/Makefile.am') diff --git a/src/Makefile.am b/src/Makefile.am index 8b3c0b6b2..c1915f7f7 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -5,7 +5,7 @@ # | (__| |_| | _ <| |___ # \___|\___/|_| \_\_____| # -# Copyright (C) 1998 - 2009, Daniel Stenberg, , et al. +# Copyright (C) 1998 - 2011, Daniel Stenberg, , et al. # # This software is licensed as described in the file COPYING, which # you should have received as part of this distribution. The terms @@ -95,3 +95,11 @@ $(HUGE): echo '#include "hugehelp.h"' >> $(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: + @@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/src -Whugehelp.c $(curl_SOURCES) +endif -- cgit v1.2.3