summaryrefslogtreecommitdiff
path: root/glib.mk
diff options
context:
space:
mode:
authorMatthias Clasen <mclasen@redhat.com>2013-12-21 13:20:44 -0500
committerMatthias Clasen <mclasen@redhat.com>2013-12-21 13:22:00 -0500
commitd6e95cc5f5e777c0f4908beafa74173de139478e (patch)
tree3290d781f8b68510f5428a727df6a7daceb23a06 /glib.mk
parentdac1ad66ebe3df38b129d78915db1c29e4d7a30d (diff)
downloadglib-d6e95cc5f5e777c0f4908beafa74173de139478e.tar.gz
Fix a !srcdir problem with installed tests
When installing scripts which are not generated in a srcdir != builddir build, $< will have ../.. goo in it. So we need to strip the directory parts before using the filename to construct a new path.
Diffstat (limited to 'glib.mk')
-rw-r--r--glib.mk3
1 files changed, 2 insertions, 1 deletions
diff --git a/glib.mk b/glib.mk
index e9063519d..cbae1f42e 100644
--- a/glib.mk
+++ b/glib.mk
@@ -54,6 +54,7 @@ lcov:
genlcov:
$(AM_V_GEN) rm -f $(top_builddir)/tests/.libs/libmoduletestplugin_*.gcda; \
$(LTP) --quiet --directory $(top_builddir) --capture --output-file glib-lcov.info --test-name GLIB_PERF --no-checksum --compat-libtool --ignore-errors source; \
+ $(LTP) --quiet --output-file glib-lcov.info --remove glib-lcov.info docs/reference/\* /tmp/\* gio/tests/gdbus-object-manager-example/\* ; \
LANG=C $(LTP_GENHTML) --quiet --prefix $(top_builddir) --output-directory glib-lcov --title "GLib Code Coverage" --legend --frames --show-details glib-lcov.info --ignore-errors source
@echo "file://$(abs_top_builddir)/glib-lcov/index.html"
@@ -163,7 +164,7 @@ installed_test_meta_DATA = $(installed_testcases:=.test)
%.test: %$(EXEEXT) Makefile
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
echo 'Type=session' >> $@.tmp; \
- echo 'Exec=$(installed_testdir)/$<' >> $@.tmp; \
+ echo 'Exec=$(installed_testdir)/$(notdir $<)' >> $@.tmp; \
mv $@.tmp $@)
CLEANFILES += $(installed_test_meta_DATA)