PageRenderTime 48ms CodeModel.GetById 21ms RepoModel.GetById 1ms app.codeStats 0ms

/trunk/Examples/test-suite/ruby/Makefile.in

#
Autoconf | 72 lines | 48 code | 13 blank | 11 comment | 1 complexity | 57291a7deb75a2737c8324d817486673 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #######################################################################
  2. # Makefile for ruby test-suite
  3. #######################################################################
  4. LANGUAGE = ruby
  5. RUBY = @RUBY@
  6. SCRIPTSUFFIX = _runme.rb
  7. srcdir = @srcdir@
  8. top_srcdir = @top_srcdir@
  9. top_builddir = @top_builddir@
  10. CPP_TEST_CASES = \
  11. kwargs_feature \
  12. li_cdata \
  13. li_cstring \
  14. li_factory \
  15. li_std_functors \
  16. li_std_multimap \
  17. li_std_pair_lang_object \
  18. li_std_queue \
  19. li_std_set \
  20. li_std_stack \
  21. primitive_types \
  22. ruby_keywords \
  23. ruby_naming \
  24. ruby_track_objects \
  25. ruby_track_objects_directors \
  26. std_containers
  27. # ruby_li_std_speed
  28. # stl_new
  29. C_TEST_CASES += \
  30. li_cdata \
  31. li_cstring
  32. include $(srcdir)/../common.mk
  33. # Overridden variables here
  34. SWIGOPT += -w801 -noautorename -features autodoc=4
  35. # Custom tests - tests with additional commandline options
  36. ruby_naming.cpptest: SWIGOPT += -autorename
  37. # Rules for the different types of tests
  38. %.cpptest:
  39. $(setup)
  40. +$(swig_and_compile_cpp)
  41. $(run_testcase)
  42. %.ctest:
  43. $(setup)
  44. +$(swig_and_compile_c)
  45. $(run_testcase)
  46. %.multicpptest:
  47. $(setup)
  48. +$(swig_and_compile_multi_cpp)
  49. $(run_testcase)
  50. # Runs the testcase. A testcase is only run if
  51. # a file is found which has _runme.rb appended after the testcase name.
  52. run_testcase = \
  53. if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
  54. env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(RUBY) $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
  55. fi
  56. # Clean
  57. %.clean:
  58. clean:
  59. $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile ruby_clean