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.
This commit is contained in:
Frank Mori Hess 2004-12-04 18:12:35 +00:00
parent d0b58e51d0
commit ca83900fcf

View file

@ -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