aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2025-04-04 14:33:19 +0530
committerAkshay Nair <phenax5@gmail.com>2025-04-04 14:33:19 +0530
commit8433630d1f315d1b66e8dd8f914c1fb73dade9ae (patch)
tree932409a1df27d0ea1d555bbf65b68d3bf73b6be1 /Makefile
parent96727d6e63ca927f3c7b68d4baa4fe672a4dcd0b (diff)
downloadnull-browser-8433630d1f315d1b66e8dd8f914c1fb73dade9ae.tar.gz
null-browser-8433630d1f315d1b66e8dd8f914c1fb73dade9ae.zip
Static link libuv and luajit + minor changes
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