From cf961cbdc28a886fbaffb1d14bb73d8683ff8363 Mon Sep 17 00:00:00 2001 From: Simon McVittie Date: Tue, 30 Jan 2018 22:52:15 +0000 Subject: Create directories to hold .test files Some of the corresponding test scripts are in $(srcdir)/test, so there is no guarantee that $(builddir)/test will exist before these recipes run. This usually works, but can cause highly parallel builds to fail. Signed-off-by: Simon McVittie --- Makefile.am | 3 +++ 1 file changed, 3 insertions(+) diff --git a/Makefile.am b/Makefile.am index 13ad510..61c6c9e 100644 --- a/Makefile.am +++ b/Makefile.am @@ -336,18 +336,21 @@ installed_test_metadata = \ CLEANFILES += $(installed_test_metadata) $(patsubst %,%.test,$(dist_test_py)): %.test: Makefile + @$(MKDIR_P) $(dir $@) $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ echo 'Type=session' >> $@.tmp; \ echo 'Exec=$(installed_log_compiler) $(PYTHON) $(installed_testdir)/$*' >> $@.tmp; \ mv $@.tmp $@) $(patsubst %,%.test,$(dist_test_sh)): %.test: Makefile + @$(MKDIR_P) $(dir $@) $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ echo 'Type=session' >> $@.tmp; \ echo 'Exec=$(installed_log_compiler) $(installed_testdir)/$*' >> $@.tmp; \ mv $@.tmp $@) $(patsubst %,%.test,$(test_programs)): %.test: Makefile + @$(MKDIR_P) $(dir $@) $(AM_V_GEN) (echo '[Test]' > $@.tmp; \ echo 'Type=session' >> $@.tmp; \ echo 'Exec=$(installed_log_compiler) $(installed_testdir)/$*$(EXEEXT)' >> $@.tmp; \ -- cgit v1.2.1