Fix out-of-tree build of ruby bindings.
authorIan Abbott <abbotti@mev.co.uk>
Fri, 2 Nov 2007 16:03:58 +0000 (16:03 +0000)
committerIan Abbott <abbotti@mev.co.uk>
Fri, 2 Nov 2007 16:03:58 +0000 (16:03 +0000)
swig/ruby/Makefile.am

index 801340c77330616ad2d0a72cbd2de74127867e46..dcea8794efd095c6cdf843fcb0cf1c282508c8ed 100644 (file)
@@ -13,7 +13,7 @@ install-data-local:
 endif
 
 ext/Makefile config.save: $(srcdir)/ext/comedi_ruby_wrap.c
-       $(RUBY) $(srcdir)/setup.rb config $(RUBY_CONFIG_OPTIONS) -- --with-comedilib-dir=../../..
+       $(RUBY) $(srcdir)/setup.rb config $(RUBY_CONFIG_OPTIONS) -- --with-comedilib-dir=$(abs_srcdir)/../..
 
 ext/comedi.so ext/comedi_ruby_wrap.o: ext/Makefile config.save
        $(RUBY) $(srcdir)/setup.rb setup