swig/Examples/test-suite/guile/Makefile.in
Matthias Köppe 0ed1964e8c Change meaning of configure option --with-guile to the name of the
Guile executable.  The new option --with-guile-prefix can be used to
specify the tree where Guile is installed.  (However, usually it
suffices to use the single option --with-guile-config.)  When running
the run tests test-suite, make sure to use the version of Guile that
SWIG was configured for.


git-svn-id: https://swig.svn.sourceforge.net/svnroot/swig/trunk/SWIG@5331 626c5289-ae23-0410-ae9c-e8d60b6d4f22
2003-11-18 15:55:45 +00:00

49 lines
1.2 KiB
Makefile

#######################################################################
# $Header$
# Makefile for guile test-suite
#######################################################################
LANGUAGE = guile
VARIANT = _passive
SCRIPTSUFFIX = _runme.scm
srcdir = @srcdir@
top_srcdir = @top_srcdir@
top_builddir = @top_builddir@
GUILE = @GUILE@
C_TEST_CASES = long_long list_vector pointer_in_out multivalue
include $(srcdir)/../common.mk
# Overridden variables here
# none!
# Rules for the different types of tests
%.cpptest:
$(setup) \
($(swig_and_compile_cpp); ); \
$(run_testcase)
%.ctest:
$(setup) \
($(swig_and_compile_c); ); \
$(run_testcase)
%.multicpptest:
$(setup) \
($(swig_and_compile_multi_cpp); ); \
$(run_testcase)
# Runs the testcase. A testcase is only run if
# a file is found which has _runme.scm appended after the testcase name.
run_testcase = \
if [ -f $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX) ]; then ( \
env LD_LIBRARY_PATH=$(DYNAMIC_LIB_PATH):$$LD_LIBRARY_PATH $(GUILE) -l $(srcdir)/$(SCRIPTPREFIX)$*$(SCRIPTSUFFIX);) \
fi;
# Clean
%.clean:
@rm -f $*-guile
clean:
$(MAKE) -f $(top_builddir)/$(EXAMPLES)/Makefile guile_clean