mirror of https://github.com/oxen-io/lokinet
add release targets to makefile for future
purge llarp_alloc colored loggingpull/1/head
parent
fbb6913ee9
commit
02d785d30c
@ -1,21 +1,42 @@
|
|||||||
|
|
||||||
all: debug
|
all: debug
|
||||||
|
|
||||||
|
SIGN = gpg --sign --detach
|
||||||
|
|
||||||
|
TARGETS = llarpd libllarp.so libllarp-static.a
|
||||||
|
SIGS = $(TARGETS:=.sig)
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
rm -f build.ninja rules.ninja cmake_install.cmake CMakeCache.txt
|
rm -f build.ninja rules.ninja cmake_install.cmake CMakeCache.txt
|
||||||
rm -rf CMakeFiles
|
rm -rf CMakeFiles
|
||||||
|
rm -f $(TARGETS)
|
||||||
|
rm -f *.sig
|
||||||
|
|
||||||
debug-configure: clean
|
debug-configure: clean
|
||||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DASAN=true
|
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug -DASAN=true
|
||||||
|
|
||||||
|
release-configure: clean
|
||||||
|
cmake -GNinja -DCMAKE_BUILD_TYPE=Release -DRELEASE_MOTTO="$(shell cat motto.txt)"
|
||||||
|
|
||||||
configure: clean
|
configure: clean
|
||||||
cmake -GNinja -DCMAKE_BUILD_TYPE=Release
|
cmake -GNinja -DCMAKE_BUILD_TYPE=Debug
|
||||||
|
|
||||||
compile: configure
|
build: configure
|
||||||
ninja
|
ninja
|
||||||
|
|
||||||
debug: debug-configure
|
debug: debug-configure
|
||||||
ninja
|
ninja
|
||||||
|
|
||||||
|
release-compile: release-configure
|
||||||
|
ninja
|
||||||
|
strip $(TARGETS)
|
||||||
|
|
||||||
|
$(TARGETS): release-compile
|
||||||
|
|
||||||
|
%.sig: $(TARGETS)
|
||||||
|
$(SIGN) $*
|
||||||
|
|
||||||
|
release: $(SIGS)
|
||||||
|
|
||||||
format:
|
format:
|
||||||
clang-format -i $$(find daemon llarp include | grep -E '\.[h,c](pp)?$$')
|
clang-format -i $$(find daemon llarp include | grep -E '\.[h,c](pp)?$$')
|
||||||
|
Loading…
Reference in New Issue