diff options
| author | Jagger De Leo <jcdl@fastmail.com> | 2020-07-05 23:36:48 -0400 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2020-07-06 09:16:07 +0200 |
| commit | 95afe80c3b8a26c6eeba0e494851d9f46f69bb4a (patch) | |
| tree | 9341cb36a984a9e0af2cc0d3f05fabe099a3c071 /Makefile | |
| parent | 821c370447dd823020fb3e9e27e3f7cb2f4c6496 (diff) | |
| download | kristall-95afe80c3b8a26c6eeba0e494851d9f46f69bb4a.tar.gz | |
Add Homebrew lib and include paths to build script
Add macOS app icon
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -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 |
