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