changeset 25493:3b5db971e091

ensure test/mex directory exists when compiling mex test files * test/mex/module.mk (%.mex : %.c): Limit pattern rule to $(MEX_TEST_FUNCTIONS) files. Depend on %reldir%/$(octave_dirstamp) as an order-only prerequisite. (DIRSTAMP_FILES): Add %reldir%/$(octave_dirstamp) to the list.
author John W. Eaton <jwe@octave.org>
date Mon, 25 Jun 2018 11:31:41 -0400
parents 7cdda3ad947f
children f35bd5cddedd
files test/mex/module.mk
diffstat 1 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/test/mex/module.mk	Mon Jun 25 01:24:44 2018 -0400
+++ b/test/mex/module.mk	Mon Jun 25 11:31:41 2018 -0400
@@ -39,9 +39,11 @@
 
 MKMEXFILE = $(top_builddir)/src/mkoctfile --mex $(MKMEXFILECPPFLAGS)
 
-%.mex : %.c
+$(MEX_TEST_FUNCTIONS) : %.mex : %.c | %reldir%/$(octave_dirstamp)
 	$(AM_V_mkmexfile)$(MKMEXFILE) $(AM_VOPT_mkmexfile) $< -o $@ || rm -f $@
 
+DIRSTAMP_FILES += %reldir%/$(octave_dirstamp)
+
 ## Until we decide how to handle installing the executable MEX files,
 ## don't install them or the associated test files.
 noinst_TEST_FILES += $(mex_TEST_FILES)