aboutsummaryrefslogtreecommitdiffstats
path: root/src/Makefile.am
diff options
context:
space:
mode:
authorEric Wong <normalperson@yhbt.net>2008-01-26 12:46:41 +0000
committerEric Wong <normalperson@yhbt.net>2008-01-26 12:46:41 +0000
commit262e515bee254e9ce3d34db033a0f1136db35e26 (patch)
treed2744ac7af502aa9d1e9224a6a8fda07d4b91726 /src/Makefile.am
parentc3ba1bb95670abd4ba64445fa7edaea9cfa9e387 (diff)
downloadmpd-262e515bee254e9ce3d34db033a0f1136db35e26.tar.gz
mpd-262e515bee254e9ce3d34db033a0f1136db35e26.tar.xz
mpd-262e515bee254e9ce3d34db033a0f1136db35e26.zip
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
Diffstat (limited to '')
-rw-r--r--src/Makefile.am3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index ef1c72494..82e46e6ee 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -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)))