mirror of
https://github.com/moparisthebest/curl
synced 2024-12-21 23:58:49 -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:
parent
92f722017c
commit
068d656c6d
@ -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
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user