bash-completion: Implement in a different way.
[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 gst-completion-helper-@GST_API_VERSION@ $(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@
14         chmod 755 $(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@
15 endif
16
17 helpers_PROGRAMS = gst-plugin-scanner
18 helpersdir=$(libexecdir)/gstreamer-$(GST_API_VERSION)
19
20 gst_plugin_scanner_SOURCES = gst-plugin-scanner.c
21 gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
22 gst_plugin_scanner_LDADD = $(GST_OBJ_LIBS)
23
24 Android.mk: Makefile.am
25         androgenizer -:PROJECT gstreamer -:EXECUTABLE gst-plugin-scanner  -:TAGS eng debug \
26          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
27          -:SOURCES $(gst_plugin_scanner_SOURCES) \
28          -:CFLAGS $(gst_plugin_scanner_CFLAGS) \
29          -:LDFLAGS $(gst_plugin_scanner_LDADD) \
30          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
31         > $@
32
33 # clean out the old one to make sure everything is udpated correctly
34 # remove again after release
35 CLEANFILES = plugin-scanner