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()