From ab42c0cf936758192f384589e80b4c9693d1146d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Konstantin=20Ka=CC=88fer?= Date: Tue, 21 Oct 2014 12:49:19 +0200 Subject: cleanup makefile [skip ci] --- .travis.yml | 7 ++----- Makefile | 22 +++++++++------------- configure | 4 ++++ scripts/travis_install.sh | 8 -------- scripts/travis_install_test_suite.sh | 8 ++++++++ 5 files changed, 23 insertions(+), 26 deletions(-) delete mode 100755 scripts/travis_install.sh create mode 100755 scripts/travis_install_test_suite.sh diff --git a/.travis.yml b/.travis.yml index 42cca837c6..3e34bace7b 100644 --- a/.travis.yml +++ b/.travis.yml @@ -28,11 +28,8 @@ before_install: - ./scripts/travis_before_install.sh install: -- make setup -- ./scripts/travis_install.sh - -before_script: -- rm -rf mapnik-packaging/out/packages +- make config.gypi +- ./scripts/travis_install_test_suite.sh script: - ./scripts/travis_script.sh diff --git a/Makefile b/Makefile index a9c24ffdb3..2e740f38ee 100644 --- a/Makefile +++ b/Makefile @@ -2,15 +2,13 @@ BUILDTYPE ?= Release PYTHON ?= python V ?= 1 -all: setup +all: mbgl -setup: config.gypi +config.gypi: + ./configure -xlibs: - @./mapnik-packaging/osx/darwin_configure.sh osx - -ilibs: - MASON_PLATFORM=ios ./configure +config-ios.gypi: + MASON_PLATFORM=ios ./configure config-ios.gypi # Builds the regular library mbgl: config.gypi mapboxgl.gyp node @@ -74,14 +72,14 @@ clear_xcode_cache: fi # build Mac OS X project for Xcode -xproj-cli: config.gypi xlibs macosx/mapboxgl-app.gyp clear_xcode_cache node +xproj-cli: config.gypi macosx/mapboxgl-app.gyp clear_xcode_cache node deps/run_gyp macosx/mapboxgl-app.gyp --depth=. --generator-output=./build -f xcode xproj: xproj-cli open ./build/macosx/mapboxgl-app.xcodeproj # build iOS project for Xcode -iproj-cli: ilibs config.gypi ios/mapbox-gl-cocoa/app/mapboxgl-app.gyp clear_xcode_cache node +iproj-cli: config-ios.gypi ios/mapbox-gl-cocoa/app/mapboxgl-app.gyp clear_xcode_cache node deps/run_gyp ios/mapbox-gl-cocoa/app/mapboxgl-app.gyp --depth=. --generator-output=./build -f xcode iproj: iproj-cli @@ -98,12 +96,10 @@ lproj: config.gypi linux/mapboxgl-app.gyp clear_xcode_cache node clean: clear_xcode_cache -find ./deps/gyp -name "*.pyc" -exec rm {} \; -rm -rf ./build/ - -rm -rf ./config.gypi + -rm -rf ./config.gypi ./config-ios.gypi distclean: clean - -rm -rf ./mapnik-packaging/osx/out/build-* - -rm -rf ./mapnik-packaging/osx/out/universal - -find ./mapnik-packaging/osx/out/packages -type d ! -name 'packages' -maxdepth 1 -exec rm -rf {} \; + -rm -rf ./mason_packages .PHONY: mbgl test linux build/test/Makefile # DO NOT DELETE diff --git a/configure b/configure index dc32be1356..e943690513 100755 --- a/configure +++ b/configure @@ -3,6 +3,8 @@ set -e set -o pipefail +CONFIG_FILE=${1:-config.gypi} + . ~/.nvm/nvm.sh nvm use 0.10 @@ -30,11 +32,13 @@ if [ -z "${BOOST_ROOT}" ]; then BOOST_ROOT='/usr' else >&2 echo -e "\033[1m\033[31mCannot find Boost\033[0m"; + exit 1 fi fi if [ ! -d "${BOOST_ROOT}/include/boost" ]; then >&2 echo -e "\033[1m\033[31mCannot find Boost at ${BOOST_ROOT}\033[0m"; + exit 1 else >&2 echo -e "\033[1m\033[32m* Using Boost installation at ${BOOST_ROOT}\033[0m"; fi diff --git a/scripts/travis_install.sh b/scripts/travis_install.sh deleted file mode 100755 index eca24e719c..0000000000 --- a/scripts/travis_install.sh +++ /dev/null @@ -1,8 +0,0 @@ -#!/usr/bin/env bash - -if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then - # - # we'll need the test suite on Linux - # - npm install git+https://github.com/mapbox/mapbox-gl-test-suite.git -fi diff --git a/scripts/travis_install_test_suite.sh b/scripts/travis_install_test_suite.sh new file mode 100755 index 0000000000..eca24e719c --- /dev/null +++ b/scripts/travis_install_test_suite.sh @@ -0,0 +1,8 @@ +#!/usr/bin/env bash + +if [[ ${TRAVIS_OS_NAME} == "linux" ]]; then + # + # we'll need the test suite on Linux + # + npm install git+https://github.com/mapbox/mapbox-gl-test-suite.git +fi -- cgit v1.2.1