--- trunk/OOPSE-2.0/make/Makefile.in 2004/10/08 22:10:22 1544 +++ trunk/OOPSE-2.0/make/Makefile.in 2004/10/08 23:15:07 1546 @@ -86,9 +86,9 @@ ForceParamDir = @OOPSE_HOME@/share/forceFields/ @MPI_F90_LIB@ OopseHome = @OOPSE_HOME@ -ForceParamDir = @OOPSE_HOME@/share/forceFields/ -SampleSimDir = @OOPSE_HOME@/share/samples/ -BinDir = @OOPSE_HOME@/bin +ForceParamDir = @OOPSE_HOME@/share/forceFields +SampleSimDir = @OOPSE_HOME@/share/samples +InstallBinDir = @OOPSE_HOME@/bin DocDir = @OOPSE_HOME@/doc FrcDeclare = -DFRC_PATH="$(ForceParamDir)" F90Declare = -D__FORTRAN90 @@ -322,28 +322,32 @@ MySample = $(subst $(shell cd $(DEV_RO #--------------------------------------------------------------------------- ifneq "$(words $(SampleFiles))" "0" -MySample = $(subst $(shell cd $(DEV_ROOT)/samples; pwd)/,,$(CurrentDir)) -MyInstallDir = $(SampleSimDir)/$(MySample) -InstallFiles = $(SampleFiles) -InstallCommand = $(InstallData) + MySample = $(subst $(shell cd $(DEV_ROOT)/samples; pwd)/,,$(CurrentDir)) + MyInstallDir = $(SampleSimDir)/$(MySample) + InstallFiles = $(SampleFiles) + InstallCommand = $(InstallData) endif ifneq "$(words $(Main))" "0" -MyInstallDir = $(BinDir)/ -InstallFiles = $(Executable) $(ParallelExecutable) -InstallCommand = $(InstallProgram) + MyInstallDir = $(InstallBinDir) + ifeq "$(UseMPI)" "yes" + InstallFiles = $(Executable) $(ParallelExecutable) + else + InstallFiles = $(Executable) + endif + InstallCommand = $(InstallProgram) endif -ifneq "$(words $(ForcefiledFiles))" "0" -MyInstallDir = $(ForceParamDir) -InstallFiles = $(ForcefiledFiles)/ -InstallCommand = $(InstallData) +ifneq "$(words $(ForcefieldFiles))" "0" + MyInstallDir = $(ForceParamDir) + InstallFiles = $(ForcefieldFiles) + InstallCommand = $(InstallData) endif ifneq "$(words $(InstallFiles))" "0" InstallList = else - InstallList = $(patsubst %,$(DEV_ROOT)/%,$(Samples)) $(patsubst %, $(DEV_ROOT)/%,$(Forcefield)) $(patsubst %, $(SourceDir)/%,$(Applications)) + InstallList = $(patsubst %,$(DEV_ROOT)/%,$(Samples)) $(DEV_ROOT)/forceFields $(patsubst %, $(SourceDir)/%,$(Applications)) endif InstallListLoop = $(patsubst %,$(SourceDir)/%/.install,$(PackageList)) $(patsubst %,%/.install,$(InstallList)) @@ -682,8 +686,6 @@ endif ifneq "$(words $(InstallFiles))" "0" $(InstallData) $(InstallFiles) $(MyInstallDir) endif - -_installprogram: # make statistics _statisticsall :