helpers: use $(INSTALL) to ... install the 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-exec-hook:
12         cd $(DESTDIR)$(bindir) && \
13         $(INSTALL) `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT) \
14         -D $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT) && \
15         rm `echo "gst-completion-helper-" | sed '$(transform)'`@GST_API_VERSION@$(EXEEXT)
16
17 uninstall-hook:
18         rm -f $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)
19 endif
20
21 helpers_PROGRAMS = gst-plugin-scanner
22 helpersdir=$(libexecdir)/gstreamer-$(GST_API_VERSION)
23
24 gst_plugin_scanner_SOURCES = gst-plugin-scanner.c
25 gst_plugin_scanner_CFLAGS = $(GST_OBJ_CFLAGS)
26 gst_plugin_scanner_LDADD = $(GST_OBJ_LIBS)
27
28 Android.mk: Makefile.am
29         androgenizer -:PROJECT gstreamer -:EXECUTABLE gst-plugin-scanner  -:TAGS eng debug \
30          -:REL_TOP $(top_srcdir) -:ABS_TOP $(abs_top_srcdir) \
31          -:SOURCES $(gst_plugin_scanner_SOURCES) \
32          -:CFLAGS $(gst_plugin_scanner_CFLAGS) \
33          -:LDFLAGS $(gst_plugin_scanner_LDADD) \
34          -:PASSTHROUGH LOCAL_ARM_MODE:=arm \
35         > $@
36
37 # clean out the old one to make sure everything is udpated correctly
38 # remove again after release
39 CLEANFILES = plugin-scanner
40
41 if ENABLE_BASH_COMPLETION
42 CLEANFILES += gst-completion-helper-@GST_API_VERSION@
43 endif