From 1e64a4fe5266420a179f1382b285374d0ad8e788 Mon Sep 17 00:00:00 2001 From: Dave Goodwin Date: Sat, 6 Sep 2003 15:00:40 +0000 Subject: [PATCH] *** empty log message *** --- Cantera/matlab/Makefile.in | 4 ++++ Cantera/matlab/setup_winmatlab.py | 3 +++ 2 files changed, 7 insertions(+) create mode 100644 Cantera/matlab/setup_winmatlab.py diff --git a/Cantera/matlab/Makefile.in b/Cantera/matlab/Makefile.in index 7a71f58ab..991d9c887 100644 --- a/Cantera/matlab/Makefile.in +++ b/Cantera/matlab/Makefile.in @@ -31,7 +31,11 @@ LIB_DEPS = $(CANTERA_LIBDIR)/libcantera.a $(CANTERA_LIBDIR)/libzeroD.a \ all: cantera/ctmethods.@mex_ext@ cantera/ctmethods.@mex_ext@: $(SRCS) $(LIB_DEPS) +ifeq ($(os_is_win),0) @PYTHON_CMD@ setup_matlab.py @prefix@/bin @buildlib@ @CT_SHARED_LIB@ '$(LIBS)' +else + @PYTHON_CMD@ setup_winmatlab.py +endif (@MATLAB_CMD@ -nodesktop -nojvm -nosplash -r setup) rm -f setup.m diff --git a/Cantera/matlab/setup_winmatlab.py b/Cantera/matlab/setup_winmatlab.py new file mode 100644 index 000000000..73085f586 --- /dev/null +++ b/Cantera/matlab/setup_winmatlab.py @@ -0,0 +1,3 @@ +f = open('setup.m','w') +f.write('cd cantera\nbuildwin\nexit\n') +f.close()