## @configure_input@ ## ## \file Makefile.in ## \brief Makefile template for libsbml MATLAB bindings ## \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/matlab/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/matlab sources = TranslateSBML.c # This use of $(libraries) is slightly inconsistent with the other makefiles, # but for Matlab, these object files act a lot like dynamic libraries and # we're installing them in the same place as the other libraries, so.... libraries = $(sources:.c=.$(MEXEXT)) subdirs = test # `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 = \ AUTHORS.txt \ BuildTranslate_Win32.m \ CheckAndConvert.m \ Contents.m \ Makefile.in \ README.txt \ TranslateSBML.c \ TranslateSBML.m \ install_Win32.m \ make.bat \ matlab-tags-regexp.txt \ test.xml # `extra_clean' and `extra_distclean' determine the files and directories # removed during "make clean" and "make distclean". extra_clean = TranslateSBML.$(MEXTEXT) # ----------------------------------------------------------------------------- # Primary build actions # ----------------------------------------------------------------------------- all: Makefile $(libraries) flags = $(MEX_FLAGS) $(MATLAB_CPPFLAGS) -I../.. -I../../../include -L../.. %.$(MEXEXT): %.c $(MEX) $(flags) $^ -lsbml $(MATLAB_LIBS) # ----------------------------------------------------------------------------- # Tags. # ----------------------------------------------------------------------------- matlab-tags-extra-flags = *.c --lang=none --regex=@matlab-tags-regexp.txt *.m etags-command = $(ETAGS) $(ETAGSFLAGS) $(matlab-tags-extra-flags) ctags-command = $(CTAGS) $(CTAGSFLAGS) $(matlab-tags-extra-flags) tags: etags ctags # ----------------------------------------------------------------------------- # Targets for checking/testing. # ----------------------------------------------------------------------------- check: all check-recursive # ----------------------------------------------------------------------------- # Installation. # ----------------------------------------------------------------------------- install: all install-libraries install-checkandconvert installdirs: all uninstall: uninstall-libraries uninstall-checkandconvert install-checkandconvert: $(INSTALL_SH) -m 644 CheckAndConvert.m "$(DESTDIR)$(LIBDIR)" uninstall-checkandconvert: @target="$(DESTDIR)$(LIBDIR)/CheckAndConvert.m"; \ if test -f $$target ; then \ echo rm $$target; \ rm $$target; \ fi; # ----------------------------------------------------------------------------- # 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. # -----------------------------------------------------------------------------