diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-12-01 20:00:22 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-12-01 20:00:22 +0200 |
commit | 685dd4a5d393e14a42f7ebb8adef75654b3ab6cc (patch) | |
tree | 305c92c2a251f0889ab1378a79dbb18e54f6685c /Makefile | |
parent | updated readme to include libevent / libgtest deps (diff) | |
download | monero-685dd4a5d393e14a42f7ebb8adef75654b3ab6cc.tar.xz |
don't build tests unless we're building all-* or *-test builds
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 16 |
1 files changed, 11 insertions, 5 deletions
@@ -8,9 +8,12 @@ build-debug: cmake-debug cd build/debug && $(MAKE) test-debug: build-debug - cd build/debug && $(MAKE) test + mkdir -p build/debug + cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE) test -all-debug: build-debug +all-debug: + mkdir -p build/debug + cd build/debug && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=Debug ../.. && $(MAKE) cmake-release: mkdir -p build/release @@ -20,13 +23,16 @@ build-release: cmake-release cd build/release && $(MAKE) test-release: build-release - cd build/release && $(MAKE) test + mkdir -p build/release + cd build/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE) test -all-release: build-release +all-release: + mkdir -p build/release + cd build/release && cmake -D BUILD_TESTS=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE) release-static: mkdir -p build/release - cd build/release && cmake -D STATIC=ON -D ARCH="x86-64" -D CMAKE_BUILD_TYPE=Release ../.. && $(MAKE) + cd build/release && cmake -D STATIC=ON -D CMAKE_BUILD_TYPE=release ../.. && $(MAKE) clean: @echo "WARNING: Back-up your wallet if it exists within ./build!" ; \ |