mirror of
https://github.com/curl/curl.git
synced 2026-04-14 22:31:41 +03:00
autotools: limit checksrc target to ignore non-repo test sources
Syncing tests with lib and src behavior. Also: - fix OS400 checksrc to find the per-directory `.checksrc` file. Closes #20898
This commit is contained in:
parent
a0db67572e
commit
6ada2e3dce
5 changed files with 5 additions and 16 deletions
|
|
@ -50,7 +50,7 @@ CS_1 =
|
||||||
CS_ = $(CS_0)
|
CS_ = $(CS_0)
|
||||||
|
|
||||||
checksrc:
|
checksrc:
|
||||||
$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) $(srcdir)/OS400/*.[ch])
|
$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir)/OS400 $(srcdir)/OS400/*.[ch])
|
||||||
|
|
||||||
if NOT_CURL_CI
|
if NOT_CURL_CI
|
||||||
if DEBUGBUILD
|
if DEBUGBUILD
|
||||||
|
|
|
||||||
|
|
@ -81,9 +81,7 @@ CS_ = $(CS_0)
|
||||||
|
|
||||||
# ignore generated C files since they play by slightly different rules!
|
# ignore generated C files since they play by slightly different rules!
|
||||||
checksrc: lib1521.c
|
checksrc: lib1521.c
|
||||||
$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) \
|
$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) -W$(srcdir)/$(BUNDLE).c $(FIRST_C) $(FIRST_H) $(UTILS_C) $(UTILS_H) $(TESTS_C))
|
||||||
-W$(srcdir)/$(BUNDLE).c \
|
|
||||||
$(srcdir)/*.[ch])
|
|
||||||
|
|
||||||
if NOT_CURL_CI
|
if NOT_CURL_CI
|
||||||
all-local: checksrc
|
all-local: checksrc
|
||||||
|
|
|
||||||
|
|
@ -62,11 +62,8 @@ CS_0 = @echo " RUN " $@;
|
||||||
CS_1 =
|
CS_1 =
|
||||||
CS_ = $(CS_0)
|
CS_ = $(CS_0)
|
||||||
|
|
||||||
# ignore generated C files since they play by slightly different rules!
|
|
||||||
checksrc:
|
checksrc:
|
||||||
$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) \
|
$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) -W$(srcdir)/$(BUNDLE).c $(FIRST_C) $(FIRST_H) $(UTILS_C) $(UTILS_H) $(TESTS_C))
|
||||||
-W$(srcdir)/$(BUNDLE).c \
|
|
||||||
$(srcdir)/*.[ch])
|
|
||||||
|
|
||||||
if NOT_CURL_CI
|
if NOT_CURL_CI
|
||||||
all-local: checksrc
|
all-local: checksrc
|
||||||
|
|
|
||||||
|
|
@ -71,11 +71,8 @@ CS_0 = @echo " RUN " $@;
|
||||||
CS_1 =
|
CS_1 =
|
||||||
CS_ = $(CS_0)
|
CS_ = $(CS_0)
|
||||||
|
|
||||||
# ignore generated C files since they play by slightly different rules!
|
|
||||||
checksrc:
|
checksrc:
|
||||||
$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) \
|
$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) -W$(srcdir)/$(BUNDLE).c $(TESTS_C))
|
||||||
-W$(srcdir)/$(BUNDLE).c \
|
|
||||||
$(srcdir)/*.[ch])
|
|
||||||
|
|
||||||
if NOT_CURL_CI
|
if NOT_CURL_CI
|
||||||
all-local: checksrc
|
all-local: checksrc
|
||||||
|
|
|
||||||
|
|
@ -75,11 +75,8 @@ CS_0 = @echo " RUN " $@;
|
||||||
CS_1 =
|
CS_1 =
|
||||||
CS_ = $(CS_0)
|
CS_ = $(CS_0)
|
||||||
|
|
||||||
# ignore generated C files since they play by slightly different rules!
|
|
||||||
checksrc:
|
checksrc:
|
||||||
$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) \
|
$(CHECKSRC)(@PERL@ $(top_srcdir)/scripts/checksrc.pl -D$(srcdir) -W$(srcdir)/$(BUNDLE).c $(TESTS_C))
|
||||||
-W$(srcdir)/$(BUNDLE).c \
|
|
||||||
$(srcdir)/*.[ch])
|
|
||||||
|
|
||||||
if NOT_CURL_CI
|
if NOT_CURL_CI
|
||||||
all-local: checksrc
|
all-local: checksrc
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue