Make check will simply overwrite results of a previous test. Hook up gcov so that the test has to be
explicitly passed to avoid confusion here.
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
gcov-clean:
@rm -f *.gcov
-gcov-report.txt: gcov-clean check-TESTS
+gcov-report.txt: gcov-clean $(TEST)
+ $(AM_V_GEN)test -n "$$TEST" || (echo "Run as 'make gcov TEST=<test>'" && exit 1)
+ $(AM_V_GEN)($(builddir)/$(TEST))
$(AM_V_GEN)(rm -rf $@; \
echo "========== coverage report ========" >> $@; \
for file in `find $(top_srcdir)/libevdev -name "*.c" -printf "%P\n"`; do \