aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile9
1 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e8535f3..8e341db 100644
--- a/Makefile
+++ b/Makefile
@@ -1,14 +1,19 @@
-.PHONY: clean build test
+.PHONY: clean build build-release test check
all: build
+PREFIX = "${PWD}/build/installdir"
+
build:
@mkdir -p build
- @cd build/ && cmake .. && make -j4
+ @cd build/ && cmake .. -DCMAKE_INSTALL_PREFIX="${PREFIX}" && make -j12
# cp --no-preserve=mode,ownership -r ${CEF_PACKAGE_PATH}/lib/* ./build/lib/
# cp --no-preserve=mode,ownership -r ${CEF_PACKAGE_PATH}/share/cef/* ./build/lib/
@cp build/compile_commands.json .
+install: build-release
+ cd build && cmake --install . --prefix "${PREFIX}"
+
test: build
cd build && QT_QPA_PLATFORM=offscreen ctest -V