From: Frank Mori Hess Date: Sat, 17 Jan 2004 17:11:17 +0000 (+0000) Subject: start of automake support for ruby extension X-Git-Tag: r0_7_22~90 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=a3005f2922ca2f1f34f21b0b104663ee31912f80;p=comedilib.git start of automake support for ruby extension --- diff --git a/swig/ruby/Makefile.am b/swig/ruby/Makefile.am index 22c5ec4..0724194 100644 --- a/swig/ruby/Makefile.am +++ b/swig/ruby/Makefile.am @@ -1,13 +1,32 @@ -EXTRA_DIST = examples +EXTRA_DIST = demo ext lib -BUILT_SOURCES = comedi_ruby_wrap.c +BUILT_SOURCES = ext/comedi_ruby_wrap.c if HAVE_SWIG -comedi_ruby_wrap.c: ../comedi.i - $(SWIG) -ruby -o ./comedi_ruby_wrap.c ../comedi.i +ext/comedi_ruby_wrap.c: ../comedi.i + $(SWIG) -ruby -o ./ext/comedi_ruby_wrap.c ../comedi.i else -comedi_ruby_wrap.c: +ext/comedi_ruby_wrap.c: echo WARNING: creating bogus comedi_ruby_wrap.c because you don\'t have swig. - touch comedi_ruby_wrap.c + touch ext/comedi_ruby_wrap.c endif + +if HAVE_RUBY +all-local: ext/comedi.so +install-data-local: + $(RUBY) setup.rb install +else +all-local: +install-data-local: +endif + +ext/Makefile: + $(RUBY) setup.rb config + +ext/comedi.so: ext/Makefile + $(RUBY) setup.rb setup + +clean-local: + $(RM) ext/comedi.so ext/Makefile +