fix: invoke MKDIR_P before changing directories
[lttng-ust.git] / doc / examples / Makefile.am
index 727aa7ceb5ab065651f69449834d87adaea50af6..e7010a75a9229305704ea7eed80c8e3893d06547 100644 (file)
@@ -1,3 +1,5 @@
+# SPDX-FileCopyrightText: 2023 EfficiOS, Inc
+#
 # SPDX-License-Identifier: LGPL-2.1-only
 
 doc_examplesdir = ${docdir}/examples
@@ -66,7 +68,7 @@ SUBDIRS_CMAKE = cmake-multiple-shared-libraries
 endif
 endif
 
-dist_doc_examples_DATA = README
+dist_doc_examples_DATA = README.md
 
 dist_doc_examples_easy_ust_DATA = easy-ust/Makefile \
        easy-ust/sample.c \
@@ -213,9 +215,8 @@ all-local:
        if [ x"$(SUBDIRS_CMAKE)" != x"" ]; then \
                for subdir in $(SUBDIRS_CMAKE); do \
                        ( \
-                               cd $$subdir && \
-                               $(MKDIR_P) build && \
-                               cd build && \
+                               $(MKDIR_P) $$subdir/build && \
+                               cd $$subdir/build && \
                                AR="$(AR)" \
                                        CC="$(CC)" \
                                        CXX="$(CXX)" \
This page took 0.023523 seconds and 4 git commands to generate.