helpers: on OSX, MKDIR_P is install-sh -c -d
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Fri, 17 Apr 2015 13:19:07 +0000 (15:19 +0200)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Fri, 17 Apr 2015 13:19:07 +0000 (15:19 +0200)
So we need to call it before cding to the bin directory.

libs/gst/helpers/Makefile.am

index e6d52bb..182849c 100644 (file)
@@ -9,8 +9,8 @@ bashhelpersdir = $(BASH_HELPERS_DIR)
 dist_bashhelpers_DATA = gst
 
 install-exec-hook:
-       cd $(DESTDIR)$(bindir) && \
        $(MKDIR_P) $(DESTDIR)$(BASH_HELPERS_DIR) && \
+       cd $(DESTDIR)$(bindir) && \
        $(INSTALL) `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT) \
         $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT) && \
        rm `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT)