changeset 30817:c62c8717ebf6 stable

ensure test subdirectories are created * test/Makefile.am (octave_dirstamp): New variable. ($(DIRSTAMP_FILES)): New rule.
author John W. Eaton <jwe@octave.org>
date Thu, 03 Mar 2022 16:13:26 -0500
parents 2637e294ea6b
children c3d7c1ede44c
files test/Makefile.am
diffstat 1 files changed, 8 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/test/Makefile.am	Thu Mar 03 15:01:32 2022 -0500
+++ b/test/Makefile.am	Thu Mar 03 16:13:26 2022 -0500
@@ -7,6 +7,14 @@
 TEST_FILES =
 noinst_TEST_FILES =
 
+octave_dirstamp = $(am__leading_dot)octave-dirstamp
+
+DIRSTAMP_FILES += $(octave_dirstamp)
+
+$(DIRSTAMP_FILES):
+	$(AM_V_GEN)$(MKDIR_P) $(@D) && \
+	: > $@
+
 TEST_FILES += \
   fntests.m \
   args.tst \
@@ -60,8 +68,6 @@
   unwind.tst \
   while.tst
 
-DIRSTAMP_FILES += $(octave_dirstamp)
-
 include bug-35448/module.mk
 include bug-35881/module.mk
 include bug-36025/module.mk