Makefile.am: run sparse once with all sources
Don't loop over source files, do all checks in one run.
This commit is contained in:
parent
be15a9e4ae
commit
e6ea7ffdcb
@ -583,10 +583,7 @@ SPARSE_CPPFLAGS = $(DEFAULT_INCLUDES) \
|
|||||||
SPARSE_CPPFLAGS += -D__SCHAR_MAX__=127 -D__SHRT_MAX__=32767 \
|
SPARSE_CPPFLAGS += -D__SCHAR_MAX__=127 -D__SHRT_MAX__=32767 \
|
||||||
-D__INT_MAX__=2147483647 -D__LONG_MAX__=2147483647
|
-D__INT_MAX__=2147483647 -D__LONG_MAX__=2147483647
|
||||||
sparse-check:
|
sparse-check:
|
||||||
for i in $(filter-out %.cxx,$(src_mpd_SOURCES)); \
|
$(SPARSE) -I. $(src_mpd_CFLAGS) $(src_mpd_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(filter-out %.cxx,$(src_mpd_SOURCES))
|
||||||
do \
|
|
||||||
$(SPARSE) -I. $(src_mpd_CFLAGS) $(src_mpd_CPPFLAGS) $(SPARSE_FLAGS) $(SPARSE_CPPFLAGS) $(srcdir)/$$i || exit; \
|
|
||||||
done
|
|
||||||
|
|
||||||
.PHONY: sparse-check
|
.PHONY: sparse-check
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user