Code

bindings/java/Makefile.am: Add "uninstall-local" target.
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 6a398cc3d5bf8799d34c57710b201274484fbbf6..8d2e49d7654072ccfb2478cb53bbbdd028ce8c8c 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