]> git.ipfire.org Git - thirdparty/curl.git/commitdiff
checksrc: pass on -D so the whitelists are found correctly
authorDaniel Stenberg <daniel@haxx.se>
Mon, 18 Apr 2016 18:10:52 +0000 (20:10 +0200)
committerDaniel Stenberg <daniel@haxx.se>
Mon, 18 Apr 2016 18:10:52 +0000 (20:10 +0200)
lib/Makefile.am
src/Makefile.am

index 1e0fda3870f19540b14c0c0f239d348d71d0977f..7b3c585acd530667eb3a02bc3fc0e4398c069d2d 100644 (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
index 28df6709edec7cf87e3eb706cfce9c9014bf2973..79c4f4f10ff491afdd69937c36a18d01f7ee87ca 100644 (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