From b97e5cb21bf97bcdd8c393f032c6eef453f4f410 Mon Sep 17 00:00:00 2001 From: Philip Withnall Date: Fri, 24 Nov 2017 12:24:31 +0000 Subject: [PATCH] glib-tap: Add missing mkdir for .test generation rule MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We can’t guarantee that the builddir we’re generating in actually exists — if doing a clean build with builddir ≠ srcdir, and there are no other rules which generate build products in builddir, the .test generation rule can fail. This happens for flatpak-builder.git for me. Try to avoid that by explicitly creating the builddir. Signed-off-by: Philip Withnall https://bugzilla.gnome.org/show_bug.cgi?id=790785 --- glib-tap.mk | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/glib-tap.mk b/glib-tap.mk index 5f25b620a..e73438db8 100644 --- a/glib-tap.mk +++ b/glib-tap.mk @@ -125,7 +125,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=$(installed_testdir)/$(notdir $<) --tap' >> $@.tmp; \ echo 'Output=TAP' >> $@.tmp; \