From b65ee445c22e2f088a849cc3eaf490752fb32597 Mon Sep 17 00:00:00 2001 From: Harry Moffat Date: Mon, 16 Mar 2009 15:43:19 +0000 Subject: [PATCH] Got rid of non-compact_install option. --- Makefile.in | 39 +++++++++++++++------------------------ configure.in | 3 --- 2 files changed, 15 insertions(+), 27 deletions(-) diff --git a/Makefile.in b/Makefile.in index b7fd233b6..a679a3280 100755 --- a/Makefile.in +++ b/Makefile.in @@ -10,7 +10,6 @@ build_matlab = @BUILD_MATLAB@ os_is_win = @OS_IS_WIN@ incl_user_code = @INCL_USER_CODE@ do_ranlib = @DO_RANLIB@ -compact_install = @COMPACT_INSTALL@ use_dll = @USE_CLIB_DLL@ cvs_tag = @CVSTAG@ @@ -35,10 +34,10 @@ win: hdr-collect python matlab install: hdr-install kernel-install clib-install data-install f90-modules-install \ python-install \ - matlab-install tools-install finish-install + matlab-install tools-install demo-install finish-install win-install: hdr-install win-kernel-install data-install python-install \ - matlab-install finish-install + matlab-install demo-install finish-install @echo @echo Cantera has been successfully installed in @ct_dir@. @echo @@ -197,9 +196,7 @@ ifneq ($(build_python),0) endif endif -finish-install: - @INSTALL@ -d @ct_docdir@ - @INSTALL@ -d @ct_bindir@ +demo-install: (cd Cantera/cxx/demos; @MAKE@ install) @INSTALL@ -c tools/templates/cxx/demo.mak @ct_demodir@/cxx @INSTALL@ -d @ct_demodir@/f77 @@ -211,31 +208,25 @@ finish-install: @INSTALL@ -c Cantera/fortran/f77demos/f77demos.mak @ct_demodir@/f77/Makefile chown -R @username@ @ct_demodir@/f77 +finish-install: + @INSTALL@ -d @ct_docdir@ + @INSTALL@ -d @ct_bindir@ ifeq ($(os_is_win),0) - -# if not a 'compact' installation, then add some symbolic links for convenience. -ifeq ($(compact_install),0) - -$(RMDIRTREE) @prefix@/cantera/demos - -$(RMDIRTREE) @prefix@/cantera/data - -$(RMDIRTREE) @prefix@/cantera/templates - -$(RMDIRTREE) @prefix@/cantera/tutorials - ln -s @ct_demodir@ @prefix@/cantera/demos - ln -s @ct_datadir@ @prefix@/cantera/data - ln -s @ct_templdir@ @prefix@/cantera/templates - ln -s @ct_tutdir@ @prefix@/cantera/tutorials - @INSTALL@ -c License.rtf @prefix@/cantera - @INSTALL@ -c License.txt @prefix@/cantera -endif -ifneq ($(build_python),0) - @INSTALL@ -c tools/src/finish_install.py tools/bin - (PYTHONPATH=''; @PYTHON_CMD@ tools/bin/finish_install.py @prefix@ @PYTHON_CMD@) +# Commands to be executed for non-win systems chmod +x @ct_bindir@/ctnew + cp -f "@homedir@/setup_cantera" "@ct_bindir@" + chmod +x @ct_bindir@/setup_cantera + cp -f License.rtf "@ct_bindir@" + cp -f License.txt "@ct_bindir@" +ifneq ($(build_python),0) ifeq ($(build_python),2) chmod +x @ct_bindir@/mixmaster endif - cp -f "@homedir@/setup_cantera" "@ct_bindir@" + @INSTALL@ -c tools/src/finish_install.py tools/bin + (PYTHONPATH=''; @PYTHON_CMD@ tools/bin/finish_install.py @prefix@ @PYTHON_CMD@) endif else +# Commands to be executed for win systems cd Cantera/fortran/f77demos; sed s'/isentropic/ctlib/g' isentropic.dsp > ctlib.dsp ( for ihhh in Cantera/fortran/f77demos/*.dsp ; do \ @INSTALL@ -c $${ihhh} @ct_demodir@/f77 ; done ) diff --git a/configure.in b/configure.in index 73a650d4f..b875534ff 100755 --- a/configure.in +++ b/configure.in @@ -224,9 +224,6 @@ AC_SUBST(ct_docdir) AC_SUBST(ct_dir) AC_SUBST(ct_mandir) -COMPACT_INSTALL=1 -AC_SUBST(COMPACT_INSTALL) - AC_CANONICAL_SYSTEM() # the root of the source tree ctroot=`(pwd)`