build: Fix usage of %.test again

We actually need the first dependency because it includes the
final executable name.  Rather, fix the original bug by using
the variable $(EXEEXT).
This commit is contained in:
Colin Walters
2013-05-24 22:16:44 +01:00
parent 5088c705ac
commit 0b167b0ae9
5 changed files with 5 additions and 5 deletions

View File

@@ -526,7 +526,7 @@ xfail_tests = desktop-app-info.test
developer_only_tests = gsettings.test
testmeta_DATA = $(filter-out $(xfail_tests) $(developer_only_tests),$(test_progs:=.test))
%.test: Makefile
%.test: %$(EXEEXT) Makefile
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
echo 'Type=session' >> $@.tmp; \
echo 'Exec=env G_TEST_DATA=$(pkglibexecdir)/installed-tests $(pkglibexecdir)/installed-tests/$<' >> $@.tmp; \