mirror of
https://codeberg.org/anoncontributorxmr/monero.git
synced 2024-11-29 22:33:28 +01:00
new Makefile target: release-static
This commit is contained in:
parent
5a3ce8a7dc
commit
d97191d4f9
4
Makefile
4
Makefile
@ -24,6 +24,10 @@ test-release: build-release
|
|||||||
|
|
||||||
all-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:
|
clean:
|
||||||
@echo "WARNING: Back-up your wallet if it exists within ./build!" ; \
|
@echo "WARNING: Back-up your wallet if it exists within ./build!" ; \
|
||||||
read -r -p "This will destroy the build directory, continue (y/N)?: " CONTINUE; \
|
read -r -p "This will destroy the build directory, continue (y/N)?: " CONTINUE; \
|
||||||
|
@ -7,7 +7,7 @@ if(RET)
|
|||||||
else()
|
else()
|
||||||
message(STATUS "You are currently on commit ${COMMIT}")
|
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)
|
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.")
|
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}")
|
set(VERSIONTAG "${COMMIT}")
|
||||||
else()
|
else()
|
||||||
|
Loading…
Reference in New Issue
Block a user