bindings/java/Makefile.am: Add "uninstall-local" target. collectd-5.3
authorFlorian Forster <octo@collectd.org>
Sat, 23 May 2015 09:01:19 +0000 (11:01 +0200)
committerMarc Fournier <marc.fournier@camptocamp.com>
Tue, 26 May 2015 11:33:23 +0000 (13:33 +0200)
Otherwise "make distcheck" will complain about leftover files.

bindings/java/Makefile.am

index 6a398cc..8d2e49d 100644 (file)
@@ -41,6 +41,11 @@ install-exec-local: java-build-stamp
        $(INSTALL) -m 644 .libs/generic-jmx.jar \
                "$(DESTDIR)$(pkgdatadir)/java"
 
+uninstall-local:
+       rm -f "$(DESTDIR)$(pkgdatadir)/java/collectd-api.jar"
+       rm -f "$(DESTDIR)$(pkgdatadir)/java/generic-jmx.jar"
+       rmdir "$(DESTDIR)$(pkgdatadir)/java" || true
+
 clean-local:
        rm -f "org/collectd/api"/*.class
        rm -f "org/collectd/java"/*.class