## @configure_input@ ## ## \file Makefile.in ## \brief Makefile template for libSBML Octave bindings tests ## \author SBML Team ## ## $Id: Makefile.in 8704 2009-01-04 02:26:05Z mhucka $ ## $HeadURL: https://sbml.svn.sourceforge.net/svnroot/sbml/trunk/libsbml/src/bindings/octave/test/Makefile.in $ ## ##*/ # ----------------------------------------------------------------------------- # Configuration variables # ----------------------------------------------------------------------------- # Some of the following are substituted automatically by `configure'. If # you are looking at "Makefile", do not edit these values; instead, run the # configure script at the top level of the src tree. It will recreate # "Makefile". include @top_srcdir@/config/makefile-common-vars.mk # `srcdir' points to the current directory, but should be set by configure. # `subdir' must be set manually to the relative dir under srcdir. Don't # set `subdir' to an absolute path, or some make actions will fail. srcdir = @srcdir@ thisdir = src/bindings/octave/test # The Octave binding files are identical to the MATLAB version (so far), # but the commands to build them are different, and we have to keep the # binaries separate. The approach taken here is to make symbolic links # to the Matlab files and then compile in the current directory. matlab_test_path = ../../matlab/test matlab_test_sources = $(wildcard $(matlab_test_path)/test*.m) local_sources = \ testReadFromFile9.m # `distfiles' determines the files and directories included in a distribution. # `distfiles_exclude' is used to filter out specific items, so that even if # they appear in `distfiles', they will not be copied in the distribution. distfiles = Makefile.in $(local_sources) # `extra_clean' and `extra_distclean' determine the files and directories # removed during "make clean" and "make distclean". symlinks = $(shell find . -type l) extra_distclean = $(symlinks) # ----------------------------------------------------------------------------- # Primary build actions # ----------------------------------------------------------------------------- all: Makefile link-sources link-sources: @files='$(matlab_test_sources)'; for file in $$files; do\ lfile=`echo $$file | sed -e 's,.*/,,'`; \ if ! test -e $$lfile; then \ ln -s $$file; \ fi; \ done; \ if ! test -e test-data; then \ ln -s $(matlab_test_path)/test-data; \ fi # ----------------------------------------------------------------------------- # Targets for checking/testing. # ----------------------------------------------------------------------------- check: all @echo Running Tests in $(thisdir) @echo ----------------------------------------------------------------- @$(call libsbmlrun,$(OCTAVE) --path ..:. --eval testBinding) @echo ----------------------------------------------------------------- @echo # ----------------------------------------------------------------------------- # Installation. # ----------------------------------------------------------------------------- install: all install-libraries installdirs: all uninstall: uninstall-libraries # ----------------------------------------------------------------------------- # Creating distribution (for libSBML maintainers only) # ----------------------------------------------------------------------------- dist: all dist-normal dist-recursive distcheck: all distcheck-normal distcheck-recursive # ----------------------------------------------------------------------------- # Miscellaneous # ----------------------------------------------------------------------------- include @top_srcdir@/config/makefile-common-actions.mk # ----------------------------------------------------------------------------- # End. # -----------------------------------------------------------------------------