checksrc/makefile.am: use $top_srcdir to find source files

... to properly support out of source tree builds.
This commit is contained in:
Daniel Stenberg 2016-04-18 14:58:11 +02:00
parent 743fa10670
commit ab493af731
6 changed files with 7 additions and 6 deletions

View file

@ -146,7 +146,8 @@ libcurl_la_SOURCES = $(CSOURCES) $(HHEADERS)
libcurlu_la_SOURCES = $(CSOURCES) $(HHEADERS)
checksrc:
@@PERL@ $(top_srcdir)/lib/checksrc.pl -D$(top_srcdir)/lib -Wcurl_config.h *.[ch] vauth/*.[ch] vtls/*.[ch]
@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]
if CURLDEBUG
# for debug builds, we scan the sources on all regular make invokes