source:
issm/oecreview/Archive/15392-16133/ISSM-15879-15880.diff@
16134
Last change on this file since 16134 was 16134, checked in by , 12 years ago | |
---|---|
File size: 10.2 KB |
-
../trunk-jpl/externalpackages/meteoio/install.sh
1 #!/bin/bash 2 #METEOIO install package: this package is not distributed by ISSM. Please request access to the code by 3 #contacting Mathias Bavay () or logging onto http://models.slf.ch/ and registering. Once you have a tarball 4 #of the code, please use this script to install. 5 6 #we assume you have a MeteoIO-*-tar.gz tarball 7 set -eu 8 9 #Do some inquiry about the names of the tar balls: 10 source_tar=`ls MeteoIO-*.tar.gz` 11 source_version=`echo $source_tar | sed 's/MeteoIO-//g' | sed 's/.tar.gz//g'` 12 13 if [[ $source_tar == "" ]]; then 14 echo "Could not identify a tar ball for the source code, name should be MeteoIO-*-tar.gz" 15 exit 1 16 fi 17 if [[ $source_version == "" ]]; then 18 echo "Could not identify a tar ball version for the source code" 19 exit 1 20 fi 21 22 #Some cleanup 23 rm -rf src MeteoIO-$source_version 24 25 #First deal with source code 26 tar -zxvf $source_tar 27 mv MeteoIO-$source_version/usr src 28 rm -rf MeteoIO-$source_version 29 30 #Reset makefile: 31 cd src && rm -rf Makefile && ln -s ../makefiles/Makefile 32 33 #Compile 34 if [ $# -eq 0 ]; then 35 make 36 else 37 make -j $1 38 fi -
../trunk-jpl/externalpackages/meteoio/makefiles/Makefile
Property changes on: ../trunk-jpl/externalpackages/meteoio/install.sh ___________________________________________________________________ Added: svn:executable ## -0,0 +1 ## +* \ No newline at end of property
1 # CMAKE generated file: DO NOT EDIT! 2 # Generated by "Unix Makefiles" Generator, CMake Version 2.8 3 4 # Default target executed when no arguments are given to make. 5 default_target: all 6 .PHONY : default_target 7 8 #============================================================================= 9 # Special targets provided by cmake. 10 11 # Disable implicit rules so canoncical targets will work. 12 .SUFFIXES: 13 14 # Remove some rules from gmake that .SUFFIXES does not remove. 15 SUFFIXES = 16 17 .SUFFIXES: .hpux_make_needs_suffix_list 18 19 # Suppress display of executed commands. 20 $(VERBOSE).SILENT: 21 22 # A target that is always out of date. 23 cmake_force: 24 .PHONY : cmake_force 25 26 #============================================================================= 27 # Set environment variables for the build. 28 29 # The shell in which to execute make rules. 30 SHELL = /bin/sh 31 32 #CMake location: 33 CMAKE_DIR = $(ISSM_DIR)/externalpackages/cmake/install/bin 34 35 # The CMake executable. 36 CMAKE_COMMAND = $(CMAKE_DIR)/cmake 37 38 # The command to remove a file. 39 RM = $(CMAKE_COMMAND) -E remove -f 40 41 # The program to use to edit the cache. 42 CMAKE_EDIT_COMMAND = $(CMAKE_DIR)/ccmake 43 44 # The top-level source directory on which CMake was run. 45 CMAKE_SOURCE_DIR = $(ISSM_DIR)/externalpackages/meteoio/src 46 47 # The top-level build directory on which CMake was run. 48 CMAKE_BINARY_DIR = $(ISSM_DIR)/externalpackages/meteoio/src 49 50 #Cpack: 51 CPACK_COMMAND = $(CMAKE_DIR)/cpack 52 53 #============================================================================= 54 # Targets provided globally by CMake. 55 56 # Special rule for the target edit_cache 57 edit_cache: 58 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake cache editor..." 59 $(CMAKE_EDIT_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) 60 .PHONY : edit_cache 61 62 # Special rule for the target edit_cache 63 edit_cache/fast: edit_cache 64 .PHONY : edit_cache/fast 65 66 # Special rule for the target install 67 install: preinstall 68 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." 69 $(CMAKE_COMMAND) -P cmake_install.cmake 70 .PHONY : install 71 72 # Special rule for the target install 73 install/fast: preinstall/fast 74 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Install the project..." 75 $(CMAKE_COMMAND) -P cmake_install.cmake 76 .PHONY : install/fast 77 78 # Special rule for the target install/local 79 install/local: preinstall 80 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing only the local directory..." 81 $(CMAKE_COMMAND) -DCMAKE_INSTALL_LOCAL_ONLY=1 -P cmake_install.cmake 82 .PHONY : install/local 83 84 # Special rule for the target install/local 85 install/local/fast: install/local 86 .PHONY : install/local/fast 87 88 # Special rule for the target install/strip 89 install/strip: preinstall 90 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Installing the project stripped..." 91 $(CMAKE_COMMAND) -DCMAKE_INSTALL_DO_STRIP=1 -P cmake_install.cmake 92 .PHONY : install/strip 93 94 # Special rule for the target install/strip 95 install/strip/fast: install/strip 96 .PHONY : install/strip/fast 97 98 # Special rule for the target list_install_components 99 list_install_components: 100 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Available install components are: \"Unspecified\" \"documentation\" \"examples\" \"headers\"" 101 .PHONY : list_install_components 102 103 # Special rule for the target list_install_components 104 list_install_components/fast: list_install_components 105 .PHONY : list_install_components/fast 106 107 # Special rule for the target package 108 package: preinstall 109 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Run CPack packaging tool..." 110 $(CPACK_COMMAND) --config ./CPackConfig.cmake 111 .PHONY : package 112 113 # Special rule for the target package 114 package/fast: package 115 .PHONY : package/fast 116 117 # Special rule for the target package_source 118 package_source: 119 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Run CPack packaging tool for source..." 120 $(CPACK_COMMAND) --config ./CPackSourceConfig.cmake /home/bavay/tmp/meteoio/CPackSourceConfig.cmake 121 .PHONY : package_source 122 123 # Special rule for the target package_source 124 package_source/fast: package_source 125 .PHONY : package_source/fast 126 127 # Special rule for the target rebuild_cache 128 rebuild_cache: 129 @$(CMAKE_COMMAND) -E cmake_echo_color --switch=$(COLOR) --cyan "Running CMake to regenerate build system..." 130 $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) 131 .PHONY : rebuild_cache 132 133 # Special rule for the target rebuild_cache 134 rebuild_cache/fast: rebuild_cache 135 .PHONY : rebuild_cache/fast 136 137 # The main all target 138 all: cmake_check_build_system 139 $(CMAKE_COMMAND) -E cmake_progress_start /home/bavay/tmp/meteoio/CMakeFiles /home/bavay/tmp/meteoio/CMakeFiles/progress.marks 140 $(MAKE) -f CMakeFiles/Makefile2 all 141 $(CMAKE_COMMAND) -E cmake_progress_start /home/bavay/tmp/meteoio/CMakeFiles 0 142 .PHONY : all 143 144 # The main clean target 145 clean: 146 $(MAKE) -f CMakeFiles/Makefile2 clean 147 .PHONY : clean 148 149 # The main clean target 150 clean/fast: clean 151 .PHONY : clean/fast 152 153 # Prepare targets for installation. 154 preinstall: all 155 $(MAKE) -f CMakeFiles/Makefile2 preinstall 156 .PHONY : preinstall 157 158 # Prepare targets for installation. 159 preinstall/fast: 160 $(MAKE) -f CMakeFiles/Makefile2 preinstall 161 .PHONY : preinstall/fast 162 163 # clear depends 164 depend: 165 $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1 166 .PHONY : depend 167 168 #============================================================================= 169 # Target rules for targets named distclean 170 171 # Build rule for target. 172 distclean: cmake_check_build_system 173 $(MAKE) -f CMakeFiles/Makefile2 distclean 174 .PHONY : distclean 175 176 # fast build rule for target. 177 distclean/fast: 178 $(MAKE) -f CMakeFiles/distclean.dir/build.make CMakeFiles/distclean.dir/build 179 .PHONY : distclean/fast 180 181 #============================================================================= 182 # Target rules for targets named doc 183 184 # Build rule for target. 185 doc: cmake_check_build_system 186 $(MAKE) -f CMakeFiles/Makefile2 doc 187 .PHONY : doc 188 189 # fast build rule for target. 190 doc/fast: 191 $(MAKE) -f CMakeFiles/doc.dir/build.make CMakeFiles/doc.dir/build 192 .PHONY : doc/fast 193 194 #============================================================================= 195 # Target rules for targets named documentation 196 197 # Build rule for target. 198 documentation: cmake_check_build_system 199 $(MAKE) -f CMakeFiles/Makefile2 documentation 200 .PHONY : documentation 201 202 # fast build rule for target. 203 documentation/fast: 204 $(MAKE) -f CMakeFiles/documentation.dir/build.make CMakeFiles/documentation.dir/build 205 .PHONY : documentation/fast 206 207 #============================================================================= 208 # Target rules for targets named uninstall 209 210 # Build rule for target. 211 uninstall: cmake_check_build_system 212 $(MAKE) -f CMakeFiles/Makefile2 uninstall 213 .PHONY : uninstall 214 215 # fast build rule for target. 216 uninstall/fast: 217 $(MAKE) -f CMakeFiles/uninstall.dir/build.make CMakeFiles/uninstall.dir/build 218 .PHONY : uninstall/fast 219 220 #============================================================================= 221 # Target rules for targets named meteoio 222 223 # Build rule for target. 224 meteoio: cmake_check_build_system 225 $(MAKE) -f CMakeFiles/Makefile2 meteoio 226 .PHONY : meteoio 227 228 # fast build rule for target. 229 meteoio/fast: 230 $(MAKE) -f meteoio/CMakeFiles/meteoio.dir/build.make meteoio/CMakeFiles/meteoio.dir/build 231 .PHONY : meteoio/fast 232 233 # Help Target 234 help: 235 @echo "The following are some of the valid targets for this Makefile:" 236 @echo "... all (the default if no target is provided)" 237 @echo "... clean" 238 @echo "... depend" 239 @echo "... distclean" 240 @echo "... doc" 241 @echo "... documentation" 242 @echo "... edit_cache" 243 @echo "... install" 244 @echo "... install/local" 245 @echo "... install/strip" 246 @echo "... list_install_components" 247 @echo "... package" 248 @echo "... package_source" 249 @echo "... rebuild_cache" 250 @echo "... uninstall" 251 @echo "... meteoio" 252 .PHONY : help 253 254 255 256 #============================================================================= 257 # Special targets to cleanup operation of make. 258 259 # Special rule to run CMake to check the build system integrity. 260 # No rule that depends on this can have commands that come from listfiles 261 # because they might be regenerated. 262 cmake_check_build_system: 263 $(CMAKE_COMMAND) -H$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 0 264 .PHONY : cmake_check_build_system 265
Note:
See TracBrowser
for help on using the repository browser.