build: Add missing mkdir to glib-tap.mk

This fixes build with builddir ≠ srcdir and a non-existent builddir: the
$(builddir)/tests/ directory was not being created by the time the .test
files were being written.

This will be submitted upstream to glib-tap.mk in GLib.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

Closes: #68
Approved by: alexlarsson
tingping/wmclass
Philip Withnall 2017-11-24 12:13:35 +00:00 committed by Atomic Bot
parent 6607fd1971
commit 1b16d7cd95
1 changed files with 2 additions and 1 deletions

View File

@ -118,7 +118,8 @@ installed_testcases = $(test_programs) $(installed_test_programs) \
installed_test_meta_DATA = $(installed_testcases:=.test)
%.test: %$(EXEEXT) Makefile
$(AM_V_GEN) (echo '[Test]' > $@.tmp; \
$(AM_V_GEN) (mkdir -p $(@D); \
echo '[Test]' > $@.tmp; \
echo 'Type=session' >> $@.tmp; \
echo 'Exec=env G_TEST_SRCDIR=$(installed_testdir) G_TEST_BUILDDIR=$(installed_testdir) $(installed_testdir)/$(notdir $<) --tap' >> $@.tmp; \
echo 'Output=TAP' >> $@.tmp; \