diff options
author | Riccardo Spagni <ric@spagni.net> | 2014-09-15 08:13:26 +0200 |
---|---|---|
committer | Riccardo Spagni <ric@spagni.net> | 2014-09-15 08:18:11 +0200 |
commit | d97191d4f95a9fcbf154bcaed297daabd7cf691d (patch) | |
tree | 766a2f07063a01a4fe9e842b53d47c1bc0b1ef7e | |
parent | FreeBSD static linking fixes (diff) | |
download | monero-d97191d4f95a9fcbf154bcaed297daabd7cf691d.tar.xz |
new Makefile target: release-static
-rw-r--r-- | Makefile | 4 | ||||
-rw-r--r-- | src/version.cmake | 2 |
2 files changed, 5 insertions, 1 deletions
@@ -24,6 +24,10 @@ test-release: build-release all-release: build-release +release-static: + mkdir -p build/release + cd build/release && cmake -D STATIC=ON -D ARCH="x86-64" -D CMAKE_BUILD_TYPE=Release ../.. && $(MAKE) + clean: @echo "WARNING: Back-up your wallet if it exists within ./build!" ; \ read -r -p "This will destroy the build directory, continue (y/N)?: " CONTINUE; \ diff --git a/src/version.cmake b/src/version.cmake index 090ca690b..096492330 100644 --- a/src/version.cmake +++ b/src/version.cmake @@ -7,7 +7,7 @@ if(RET) else() message(STATUS "You are currently on commit ${COMMIT}") execute_process(COMMAND "${GIT}" show-ref --tags -d --abbrev COMMAND awk "END{print $1}" RESULT_VARIABLE RET OUTPUT_VARIABLE TAGGEDCOMMIT OUTPUT_STRIP_TRAILING_WHITESPACE) - if(RET) + if(RET AND NOT ${TAGGEDCOMMIT} STREQUAL "") message(WARNING "Cannot determine most recent tag. Make sure that you are building either from a Git working tree or from a source archive.") set(VERSIONTAG "${COMMIT}") else() |