]> sigrok.org Git - libsigrok.git/commitdiff
build: Fix distribution of Ruby bindings
authorMarvin Schmidt <redacted>
Fri, 13 May 2016 15:44:12 +0000 (17:44 +0200)
committerUwe Hermann <redacted>
Fri, 13 May 2016 22:32:37 +0000 (00:32 +0200)
The bindings file was not listed in EXTRA_DIST and therefore not
distributed. We also need to provide an target to uninstall the Ruby
bindings and add it to UNINSTALL_EXTRA in order to make `make distcheck`
happy.

This fixes bug #741

Makefile.am

index 5db56f9e23af2bf227953fce5d6ca996fc0cb218..85f880e33b22c974bfd98dce5b027d118993f628 100644 (file)
@@ -530,6 +530,7 @@ EXTRA_DIST = \
        bindings/python/sigrok/__init__.py \
        bindings/python/sigrok/core/__init__.py \
        bindings/python/sigrok/core/classes.i \
+       bindings/ruby/classes.i \
        bindings/java/Doxyfile \
        bindings/java/org/sigrok/core/classes/classes.i \
        bindings/java/org/sigrok/core/interfaces/DatafeedCallback.java \
@@ -712,6 +713,9 @@ ruby-install: $(REXT)
        $(INSTALL) -d $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR)
        $(INSTALL) $< $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR)
 
+ruby-uninstall:
+       rm -f $(DESTDIR)$(prefix)/$(RBSIGROK_EXTDIR)/sigrok.$(RUBY_DLEXT)
+
 ruby-clean:
        -$(AM_V_at)rm -fr $(RDIR)/doc
        -$(AM_V_at)rm -f $(REXT) $(ROBJ) $(RWRAP) $(RDOC)
@@ -721,6 +725,7 @@ ruby-doc: $(RWRAP)
 
 BUILD_EXTRA += ruby-build
 INSTALL_EXTRA += ruby-install
+UNINSTALL_EXTRA += ruby-uninstall
 CLEAN_EXTRA += ruby-clean
 
 endif