aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJagger De Leo <jcdl@fastmail.com>2020-07-05 23:36:48 -0400
committerFelix Queißner <felix@ib-queissner.de>2020-07-06 09:16:07 +0200
commit95afe80c3b8a26c6eeba0e494851d9f46f69bb4a (patch)
tree9341cb36a984a9e0af2cc0d3f05fabe099a3c071 /Makefile
parent821c370447dd823020fb3e9e27e3f7cb2f4c6496 (diff)
downloadkristall-95afe80c3b8a26c6eeba0e494851d9f46f69bb4a.tar.gz
Add Homebrew lib and include paths to build script
Add macOS app icon
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 7 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index e20d29f..f2cdc80 100644
--- a/Makefile
+++ b/Makefile
@@ -18,12 +18,18 @@ QMAKE_COMMAND := qmake
# For Fedora 32 and similar distributions, use the next line instead of the above.
# QMAKE_COMMAND := /usr/bin/qmake-qt5
+UNAME := $(shell uname)
+# Homebrew on macOS does not link Qt5 into the system path.
+ifeq ($(UNAME),Darwin)
+ HOMEBREW_PATH=export PATH="$(PATH):/usr/local/opt/qt/bin"
+endif
+
kristall: build/kristall
cp build/kristall $@
build/kristall: src/*
mkdir -p build
- cd build && $(QMAKE_COMMAND) ../src/kristall.pro && $(MAKE) $(MAKEFLAGS)
+ cd build; $(HOMEBREW_PATH); $(QMAKE_COMMAND) ../src/kristall.pro && $(MAKE) $(MAKEFLAGS)
install: kristall
# Install icons