PageRenderTime 41ms CodeModel.GetById 17ms RepoModel.GetById 0ms app.codeStats 0ms

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

#
Autoconf | 51 lines | 27 code | 12 blank | 12 comment | 1 complexity | 4dab6264e75367b7762b42cb7cf0a567 MD5 | raw file
Possible License(s): LGPL-2.1, Cube, GPL-3.0, 0BSD, GPL-2.0
  1. #######################################################################
  2. # Makefile for clisp test-suite
  3. #######################################################################
  4. LANGUAGE = clisp
  5. CLISP = @CLISPBIN@
  6. SCRIPTSUFFIX = _runme.lisp
  7. srcdir = @srcdir@
  8. top_srcdir = @top_srcdir@
  9. top_builddir = @top_builddir@
  10. include $(srcdir)/../common.mk
  11. # Overridden variables here
  12. # no C++ tests for now
  13. CPP_TEST_CASES =
  14. #C_TEST_CASES +=
  15. # Custom tests - tests with additional commandline options
  16. # none!
  17. # Rules for the different types of tests
  18. %.cpptest:
  19. $(setup)
  20. +$(swig_and_compile_cpp)
  21. $(run_testcase)
  22. %.ctest:
  23. $(setup)
  24. +$(swig_and_compile_c)
  25. $(run_testcase)
  26. %.multicpptest:
  27. $(setup)
  28. +$(swig_and_compile_multi_cpp)
  29. $(run_testcase)
  30. # Runs the testcase. A testcase is only run if
  31. # a file is found which has _runme.lisp appended after the testcase name.
  32. run_testcase = \
  33. if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then \
  34. env LD_LIBRARY_PATH=.:$$LD_LIBRARY_PATH $(RUNTOOL) $(CLISPBIN) -batch -s $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX); \
  35. fi
  36. # Clean: (does nothing, we dont generate extra clisp code)
  37. %.clean:
  38. clean:
  39. $(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile clisp_clean