Fix distcheck

This commit is contained in:
David Schleef 2004-08-11 21:37:46 +00:00
parent 33d9f3daca
commit f8389c58f5
2 changed files with 21 additions and 2 deletions

View 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

View 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