completion-helper: Add missing DESTDIR
authorNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 23 Feb 2015 21:39:43 +0000 (16:39 -0500)
committerNicolas Dufresne <nicolas.dufresne@collabora.com>
Mon, 23 Feb 2015 21:50:34 +0000 (16:50 -0500)
Otherwise doing "make install DESTDIR" will try to write to
/usr/share/...

libs/gst/helpers/Makefile.am

index 0c3771b..41b0d61 100644 (file)
@@ -10,8 +10,8 @@ dist_bashhelpers_DATA = gst
 
 install-data-hook:
        cd $(DESTDIR)$(bindir) && \
-       mv gst-completion-helper-@GST_API_VERSION@$(EXEEXT) $(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)
-       chmod 755 $(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)
+       mv gst-completion-helper-@GST_API_VERSION@$(EXEEXT) $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)
+       chmod 755 $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)
 endif
 
 helpers_PROGRAMS = gst-plugin-scanner