Add install option to Makefile
This commit is contained in:
parent
faa41acd3a
commit
5f70bbe77f
1 changed files with 36 additions and 0 deletions
36
Makefile
Normal file
36
Makefile
Normal file
|
@ -0,0 +1,36 @@
|
|||
all: all-release
|
||||
|
||||
cmake-debug:
|
||||
mkdir -p build/debug
|
||||
cd build/debug && cmake -D CMAKE_BUILD_TYPE=Debug ../..
|
||||
|
||||
build-debug: cmake-debug
|
||||
cd build/debug && $(MAKE)
|
||||
|
||||
test-debug: build-debug
|
||||
cd build/debug && $(MAKE) test
|
||||
|
||||
all-debug: build-debug
|
||||
|
||||
cmake-release:
|
||||
mkdir -p build/release
|
||||
cd build/release && cmake -D CMAKE_BUILD_TYPE=Release ../..
|
||||
|
||||
build-release: cmake-release
|
||||
cd build/release && $(MAKE)
|
||||
|
||||
test-release: build-release
|
||||
cd build/release && $(MAKE) test
|
||||
|
||||
all-release: build-release
|
||||
|
||||
clean:
|
||||
rm -rf build
|
||||
|
||||
tags:
|
||||
ctags -R --sort=1 --c++-kinds=+p --fields=+iaS --extra=+q --language-force=C++ src contrib tests/gtest
|
||||
|
||||
install: build-release
|
||||
cd build/release && install danicoin /usr/bin
|
||||
|
||||
.PHONY: all install cmake-debug build-debug test-debug all-debug cmake-release build-release test-release all-release clean tags
|
Loading…
Reference in a new issue