1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-22 08:08:50 -05:00

Makefile: run checksrc if debug enabled

And make the build fail if a warning or error was detected
This commit is contained in:
Daniel Stenberg 2011-04-20 22:44:38 +02:00
parent 92f722017c
commit 068d656c6d

View File

@ -185,5 +185,9 @@ $(VCPROJ): vc8proj.head vc8proj.foot Makefile.am
done; \ done; \
cat $(srcdir)/vc8proj.foot $(VCPROJOUT) ) cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )
if CURLDEBUG
# for debug builds, we scan the sources on all regular make invokes
all-local: all-local:
@for i in $(CSOURCES) $(HHEADERS); do $(top_srcdir)/lib/checksrc.pl $(top_srcdir)/lib/$$i; done @for i in $(CSOURCES) $(HHEADERS); do @PERL@ $(top_srcdir)/lib/checksrc.pl $(top_srcdir)/lib/$$i; if test $$? != "0"; then exit 1; fi; done
endif