Cleanup checking for tests in src/ when building in separate dir
git-svn-id: https://svn.musicpd.org/mpd/trunk@7147 09075e82-0dd4-0310-85a5-a0d7c8717e4f
This commit is contained in:
parent
c3ba1bb956
commit
262e515bee
|
@ -153,7 +153,8 @@ sparse-check:
|
|||
done
|
||||
|
||||
TEST_CFLAGS = -DUNIT_TEST
|
||||
TEST_FILES := $(shell grep UNIT_TEST $(mpd_SOURCES) | \
|
||||
TEST_FILES := $(shell grep UNIT_TEST \
|
||||
$(addprefix $(srcdir)/, $(mpd_SOURCES)) | \
|
||||
awk -F: '{print $$1}' | uniq)
|
||||
|
||||
test: $(addprefix test-, $(subst .c,,$(TEST_FILES)))
|
||||
|
|
Loading…
Reference in New Issue