From: Daniel Elstner Date: Sat, 7 Nov 2015 21:20:19 +0000 (+0100) Subject: build: Enable uninstall of Java bindings X-Git-Tag: libsigrok-0.4.0~121 X-Git-Url: https://sigrok.org/gitaction?a=commitdiff_plain;h=7252a09e8fb0b436851ab3fd041d014b0ba4addd;p=libsigrok.git build: Enable uninstall of Java bindings This is needed for make distcheck to work. --- diff --git a/Makefile.am b/Makefile.am index 6d5fb2b8..3a2b5c3b 100644 --- a/Makefile.am +++ b/Makefile.am @@ -536,6 +536,7 @@ tests_main_LDADD = libsigrok.la $(SR_EXTRA_LIBS) $(TESTS_LIBS) BUILD_EXTRA = INSTALL_EXTRA = +UNINSTALL_EXTRA = CLEAN_EXTRA = if BINDINGS_CXX @@ -691,6 +692,10 @@ java-install: $(INSTALL) -d $(DESTDIR)$(datadir)/java $(INSTALL) $(JJAR) $(DESTDIR)$(datadir)/java +java-uninstall: + -rm -f $(DESTDIR)$(datadir)/java/sigrok-core.jar + -rm -f $(DESTDIR)$(libdir)/jni/libsigrok_java_core_classes.so + java-clean: -$(AM_V_at)rm -f $(java_cleanfiles) -$(AM_V_at)rm -fr $(JDIR)/doxy @@ -700,12 +705,14 @@ java-doc: BUILD_EXTRA += java-build INSTALL_EXTRA += java-install +UNINSTALL_EXTRA += java-uninstall CLEAN_EXTRA += java-clean endif all-local: $(BUILD_EXTRA) install-exec-local: $(INSTALL_EXTRA) +uninstall-local: $(UNINSTALL_EXTRA) clean-local: $(CLEAN_EXTRA) .PHONY: dist-changelog