From: David Schleef Date: Wed, 11 Aug 2004 21:37:46 +0000 (+0000) Subject: Fix distcheck X-Git-Tag: r0_7_22~13 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=f8389c58f5908d2b626d21e7a901962e78bb9f0a;p=comedilib.git Fix distcheck --- diff --git a/swig/Makefile.am b/swig/Makefile.am index 54e781a..ffdcd06 100644 --- a/swig/Makefile.am +++ b/swig/Makefile.am @@ -1,5 +1,19 @@ -SUBDIRS = python ruby +if HAVE_PYTHON +python_subdirs = python +else +python_subdirs = +endif + +if HAVE_RUBY +ruby_subdirs = ruby +else +ruby_subdirs = +endif + +DIST_SUBDIRS = python ruby + +SUBDIRS = $(python_subdirs) $(ruby_subdirs) EXTRA_DIST = comedi.i diff --git a/swig/ruby/Makefile.am b/swig/ruby/Makefile.am index be1b6dd..718f2d0 100644 --- a/swig/ruby/Makefile.am +++ b/swig/ruby/Makefile.am @@ -22,14 +22,19 @@ all-local: install-data-local: endif -ext/Makefile + config.save: +ext/Makefile config.save: $(RUBY) $(srcdir)/setup.rb config $(RUBY_CONFIG_OPTIONS) ext/comedi.so ext/comedi_ruby_wrap.o: ext/Makefile config.save $(srcdir)/ext/comedi_ruby_wrap.c $(RUBY) $(srcdir)/setup.rb setup +if HAVE_RUBY clean-local: $(RUBY) $(srcdir)/setup.rb clean distclean-local: $(RUBY) $(srcdir)/setup.rb distclean +else +clean-local: +distclean-local: +endif