patch from steven.jenkins@ieee.org (Steven Jenkins):
authorFrank Mori Hess <fmhess@speakeasy.net>
Sat, 4 Dec 2004 18:12:35 +0000 (18:12 +0000)
committerFrank Mori Hess <fmhess@speakeasy.net>
Sat, 4 Dec 2004 18:12:35 +0000 (18:12 +0000)
'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

index 12dd9af767fbe3b43063e64df53463e41e703212..801340c77330616ad2d0a72cbd2de74127867e46 100644 (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