helpers: Fix install of completion-helper.
[platform/upstream/gstreamer.git] / libs / gst / helpers / Makefile.am
1 if ENABLE_BASH_COMPLETION
2 bin_PROGRAMS = gst-completion-helper-@GST_API_VERSION@
3
4 gst_completion_helper_@GST_API_VERSION@_SOURCES = gst-completion-helper.c
5 gst_completion_helper_@GST_API_VERSION@_CFLAGS = $(GST_OBJ_CFLAGS)
6 gst_completion_helper_@GST_API_VERSION@_LDADD = $(GST_OBJ_LIBS)
7
8 bashhelpersdir = $(BASH_HELPERS_DIR)
9 dist_bashhelpers_DATA = gst
10
11 install-data-hook:
12         cd $(DESTDIR)$(bindir) && \
13         mv `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT) \
14         $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)
15         chmod 755 $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)
16 endif
17
18 helpers_PROGRAMS = gst-plugin-scanner
19 helpersdir=$(libexecdir)/gstreamer-$(GST_API_VERSION)
20
21 gst_plugin_scanner_SOURCES = gst-plugin-scanner.c
22 gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
23 gst_plugin_scanner_LDADD = $(GST_OBJ_LIBS)
24
25 Android.mk: Makefile.am
26         androgenizer -:PROJECT gstreamer -:EXECUTABLE gst-plugin-scanner  -:TAGS eng debug \
27          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
28          -:SOURCES $(gst_plugin_scanner_SOURCES) \
29          -:CFLAGS $(gst_plugin_scanner_CFLAGS) \
30          -:LDFLAGS $(gst_plugin_scanner_LDADD) \
31          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
32         > $@
33
34 # clean out the old one to make sure everything is udpated correctly
35 # remove again after release
36 CLEANFILES = plugin-scanner