From ca83900fcf0289be0a0aac47767154f4ac827b29 Mon Sep 17 00:00:00 2001 From: Frank Mori Hess Date: Sat, 4 Dec 2004 18:12:35 +0000 Subject: [PATCH] patch from steven.jenkins@ieee.org (Steven Jenkins): 'setup.rb config' calls 'extconf.rb' in the ext directory to build the extension Makefile. 'extconf.rb' looks for C source files in the directory when it runs, so SWIG needs to run before 'setup.rb config'. The attached patch makes the output of SWIG a prerequisite for ext/Makefile. --- swig/ruby/Makefile.am | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/swig/ruby/Makefile.am b/swig/ruby/Makefile.am index 12dd9af..801340c 100644 --- a/swig/ruby/Makefile.am +++ b/swig/ruby/Makefile.am @@ -12,10 +12,10 @@ all-local: install-data-local: endif -ext/Makefile config.save: +ext/Makefile config.save: $(srcdir)/ext/comedi_ruby_wrap.c $(RUBY) $(srcdir)/setup.rb config $(RUBY_CONFIG_OPTIONS) -- --with-comedilib-dir=../../.. -ext/comedi.so ext/comedi_ruby_wrap.o: ext/Makefile config.save $(srcdir)/ext/comedi_ruby_wrap.c +ext/comedi.so ext/comedi_ruby_wrap.o: ext/Makefile config.save $(RUBY) $(srcdir)/setup.rb setup if HAVE_RUBY -- 2.26.2