Fix 'make uninstall' - it left plugins intact.
authorAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 21 Sep 2014 17:04:23 +0000 (20:04 +0300)
committerAndriy Grytsenko <andrej@rep.kiev.ua>
Sun, 21 Sep 2014 17:04:23 +0000 (20:04 +0300)
Since we remove .la files, uninstalling cannot find .so files.
Therefore uninstall-hook should remove them.

ChangeLog
plugins/Makefile.am

index 88f0804..77dad2d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -21,6 +21,7 @@
     before gusssing it.
 * Fixed color saving in the configuration.
 * Fixed incomplete resources deallocation in 'volumealsa' plugin.
+* Fixed make uninstall (it left plugins installed).
 
 0.7.0
 -------------------------------------------------------------------------
index a904e1b..5424fbd 100644 (file)
@@ -341,3 +341,9 @@ install-exec-hook:
        rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.la
        rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.a
        rm -f $(DESTDIR)$(libdir)/lxpanel/plugins/*.
+
+if BUILD_PLUGIN_LOADER
+DYNAMIC_PLUGINS_INSTALLED = $(DYNAMIC_PLUGINS:.la=.so)
+uninstall-hook:
+       cd $(DESTDIR)$(libdir)/lxpanel/plugins && rm -f $(DYNAMIC_PLUGINS_INSTALLED) || true
+endif