Commit 068d656c authored by Daniel Stenberg's avatar Daniel Stenberg
Browse files

Makefile: run checksrc if debug enabled

And make the build fail if a warning or error was detected
parent 92f72201
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -185,5 +185,9 @@ $(VCPROJ): vc8proj.head vc8proj.foot Makefile.am
	done; \
	cat $(srcdir)/vc8proj.foot $(VCPROJOUT) )

if CURLDEBUG
# for debug builds, we scan the sources on all regular make invokes
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