helpers: remove completion-helper on uninstall
authorMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 24 Mar 2015 18:30:52 +0000 (19:30 +0100)
committerMathieu Duponchelle <mathieu.duponchelle@opencreed.com>
Tue, 24 Mar 2015 18:34:44 +0000 (19:34 +0100)
+ And add it to CLEANFILES

libs/gst/helpers/Makefile.am

index 523b2df..52073d9 100644 (file)
@@ -13,6 +13,9 @@ install-data-hook:
        mv `echo "gst-completion-helper-" | sed '$(transform)'`@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)
+
+uninstall-hook:
+       rm -f $(DESTDIR)$(BASH_HELPERS_DIR)/gst-completion-helper-@GST_API_VERSION@$(EXEEXT)
 endif
 
 helpers_PROGRAMS = gst-plugin-scanner
@@ -34,3 +37,7 @@ Android.mk: Makefile.am
 # clean out the old one to make sure everything is udpated correctly
 # remove again after release
 CLEANFILES = plugin-scanner
+
+if ENABLE_BASH_COMPLETION
+CLEANFILES += gst-completion-helper-@GST_API_VERSION@
+endif