summary refs log tree commit diff
path: root/Makefile
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2017-07-01 12:46:58 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2017-07-01 12:46:58 +0300
commit730a56f58e3b6e556437ca462645504a860a1ed2 (patch)
treeeb59e2922639ac342abdd53e78f9c6abd363db33 /Makefile
parentDon't collapse room list (diff)
downloadnheko-730a56f58e3b6e556437ca462645504a860a1ed2.tar.xz
Remove hardcoded font sizes, margins etc
- Fixes small font issue on MacOs
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile30
1 files changed, 26 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 5802f833..b4af63fb 100644
--- a/Makefile
+++ b/Makefile
@@ -1,23 +1,45 @@
 SRC := $(shell find include src -type f -type f \( -iname "*.cc" -o -iname "*.h" \))
 
+# Linux specific helpers
 debug:
 	@cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=Debug
 	@cmake --build build
 
+
 release-debug:
 	@cmake -DBUILD_TESTS=OFF -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
 	@cmake --build build
 
+test:
+	@cmake -DBUILD_TESTS=ON -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
+	@cmake --build build
+	@cd build && GTEST_COLOR=1 ctest --verbose
+
+# MacOS specific helpers
+mdebug:
+	@cmake -DBUILD_TESTS=OFF \
+		-H. \
+		-GNinja \
+		-Bbuild \
+		-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5 \
+		-DCMAKE_BUILD_TYPE=Debug
+	@cmake --build build
+
+mrelease:
+	@cmake -DBUILD_TESTS=OFF \
+		-H. \
+		-GNinja \
+		-Bbuild \
+		-DCMAKE_PREFIX_PATH=/usr/local/opt/qt5 \
+		-DCMAKE_BUILD_TYPE=RelWithDebInfo
+	@cmake --build build
+
 run:
 	@./build/nheko
 
 lint:
 	@clang-format -i $(SRC)
 
-test:
-	@cmake -DBUILD_TESTS=ON -H. -GNinja -Bbuild -DCMAKE_BUILD_TYPE=RelWithDebInfo
-	@cmake --build build
-	@cd build && GTEST_COLOR=1 ctest --verbose
 
 clean:
 	rm -rf build