Fix distcheck
authorDavid Schleef <ds@schleef.org>
Wed, 11 Aug 2004 21:37:46 +0000 (21:37 +0000)
committerDavid Schleef <ds@schleef.org>
Wed, 11 Aug 2004 21:37:46 +0000 (21:37 +0000)
swig/Makefile.am
swig/ruby/Makefile.am

index 54e781af6b2eb2b0749144f6e2f8bc22d7dc02c6..ffdcd06b5f68ea6083391263f591fe6b6bb5f180 100644 (file)
@@ -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
 
index be1b6dd0ef5273ae2b8268efe693c9ad7fc48022..718f2d09c6784d40561e65c88e2aa3a20401da8b 100644 (file)
@@ -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