fix: invoke MKDIR_P before changing directories
[lttng-ust.git] / doc / examples / Makefile.am
index 23f28e8546b43b6b7766e6380e7e171ae82b2b3e..b7e9c498102a92a1773428aaeb6b6e8b4baeedd2 100644 (file)
@@ -206,9 +206,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.024378 seconds and 4 git commands to generate.