1
0
mirror of https://github.com/moparisthebest/curl synced 2024-12-21 15:48:49 -05:00

checksrc: pass on -D so the whitelists are found correctly

This commit is contained in:
Daniel Stenberg 2016-04-18 20:10:52 +02:00
parent fb823d24f1
commit a542536cf6
2 changed files with 4 additions and 3 deletions

View File

@ -146,8 +146,8 @@ libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
libcurlu_la_SOURCES = $(CSOURCES) $(HHEADERS)
checksrc:
@PERL@ $(top_srcdir)/lib/checksrc.pl -W$(top_srcdir)/lib/curl_config.h \
$(top_srcdir)/lib/*.[ch] $(top_srcdir)/lib/vauth/*.[ch] $(top_srcdir)/lib/vtls/*.[ch]
@PERL@ $(srcdir)/checksrc.pl -D$(srcdir) -W$(srcdir)/curl_config.h \
$(srcdir)/*.[ch] $(srcdir)/vauth/*.[ch] $(srcdir)/vtls/*.[ch]
if CURLDEBUG
# for debug builds, we scan the sources on all regular make invokes

View File

@ -130,7 +130,8 @@ endif
# ignore tool_hugehelp.c since it is generated source code and it plays
# by slightly different rules!
checksrc:
@PERL@ $(top_srcdir)/lib/checksrc.pl -W$(top_srcdir)/src/tool_hugehelp.c $(top_srcdir)/src/*.[ch]
@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(srcdir) \
-W$(srcdir)/tool_hugehelp.c $(srcdir)/*.[ch]
if CURLDEBUG
# for debug builds, we scan the sources on all regular make invokes