From f8389c58f5908d2b626d21e7a901962e78bb9f0a Mon Sep 17 00:00:00 2001 From: David Schleef Date: Wed, 11 Aug 2004 21:37:46 +0000 Subject: [PATCH] Fix distcheck --- swig/Makefile.am | 16 +++++++++++++++- swig/ruby/Makefile.am | 7 ++++++- 2 files changed, 21 insertions(+), 2 deletions(-) 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 -- 2.26.2