MODULE = qt FEATURE = $(MODULE) INTERFACE = $(MODULE).i WRAPPER = $(MODULE)_wrap.cc RUBY = ruby SWIG = swigruby -dnone -c++ swigall: $(WRAPPER) Makefile $(WRAPPER): $(INTERFACE) $(SWIG) -o $@ $(INTERFACE) Makefile: extconf.rb $(RUBY) extconf.rb --with-qt-dir=/usr/X11R6 @if [ -f Makefile ] ; then\ echo "include Makefile.swig" >> Makefile;\ fi swigclean: @if [ -f Makefile ] ; then\ make -f Makefile clean;\ fi rm -f Makefile $(WRAPPER) test: all $(RUBY) hello.rb