helpers: Fix Makefile.am to install the completion-helper correctly.
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Wed, 15 Apr 2015 11:02:36 +0000 (13:02 +0200)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Wed, 15 Apr 2015 11:05:46 +0000 (13:05 +0200)
+ The program is installed at install-exec time, we thus need
  to move it in install-exec-hook, not install-data-hook.

libs/gst/helpers/Makefile.am

index 52073d9..0423fed 100644 (file)
@@ -8,7 +8,7 @@ gst_completion_helper_@GST_API_VERSION@_LDADD = $(GST_OBJ_LIBS)
 bashhelpersdir = $(BASH_HELPERS_DIR)
 dist_bashhelpers_DATA = gst
 
-install-data-hook:
+install-exec-hook:
        cd $(DESTDIR)$(bindir) && \
        mv `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT) \
        $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)