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:
Eric Wong 2008-01-26 12:46:41 +00:00
parent c3ba1bb956
commit 262e515bee
1 changed files with 2 additions and 1 deletions

View File

@ -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)))