aboutsummaryrefslogtreecommitdiff
path: root/lib/Makefile.am
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2011-04-27 10:23:27 +0200
committerDaniel Stenberg <daniel@haxx.se>2011-04-27 10:23:27 +0200
commit45de0579207becbf742c56e21f44446abde2b10e (patch)
treee0f9c7f3cd694f294fe39abbb7daf34e1e4ccb49 /lib/Makefile.am
parentaa87f0ab15c15784c4d7ee55e8c5972f5353b41e (diff)
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.
Diffstat (limited to 'lib/Makefile.am')
-rw-r--r--lib/Makefile.am8
1 files changed, 5 insertions, 3 deletions
diff --git a/lib/Makefile.am b/lib/Makefile.am
index 0e80f5e18..fa6b846ad 100644
--- a/lib/Makefile.am
+++ b/lib/Makefile.am
@@ -185,9 +185,11 @@ $(VCPROJ): vc8proj.head vc8proj.foot Makefile.am
done; \
cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )
+
+checksrc:
+ @@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/lib $(CSOURCES) $(HHEADERS)
+
if CURLDEBUG
# for debug builds, we scan the sources on all regular make invokes
-all-local:
- @@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/lib $(CSOURCES) $(HHEADERS)
+all-local: checksrc
endif
-