diff options
| author | Felix (xq) Queißner <git@mq32.de> | 2020-07-20 17:34:39 +0200 |
|---|---|---|
| committer | Felix (xq) Queißner <git@mq32.de> | 2020-07-20 17:34:39 +0200 |
| commit | 57819218dc9fcfcec75c92ae1db910c9709df379 (patch) | |
| tree | fcc5adfff0724a8e142ea287b382b5d675f4fc81 /Makefile | |
| parent | 06abd3f6f20ca2008b71fa3967baeaf53f5775eb (diff) | |
| parent | 7fbf49b216895d6870f46f54ab8e1289f541a723 (diff) | |
| download | kristall-57819218dc9fcfcec75c92ae1db910c9709df379.tar.gz | |
Merge branch 'master' of github.com:MasterQ32/kristall
Diffstat (limited to 'Makefile')
| -rw-r--r-- | Makefile | 14 |
1 files changed, 13 insertions, 1 deletions
@@ -13,12 +13,24 @@ bindir=$(DESTDIR)$(PREFIX)/bin sharedir=$(DESTDIR)$(PREFIX)/share MAKEDIR=makedir -p +# Default Qmake Command For Ubuntu (and probably other Debian) distributions + +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 ../src/kristall.pro && $(MAKE) $(MAKEFLAGS) + cd build; $(HOMEBREW_PATH) $(QMAKE_COMMAND) ../src/kristall.pro && $(MAKE) $(MAKEFLAGS) install: kristall # Prepare directories |
