aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorFelix (xq) Queißner <git@mq32.de>2020-07-20 17:34:39 +0200
committerFelix (xq) Queißner <git@mq32.de>2020-07-20 17:34:39 +0200
commit57819218dc9fcfcec75c92ae1db910c9709df379 (patch)
treefcc5adfff0724a8e142ea287b382b5d675f4fc81 /Makefile
parent06abd3f6f20ca2008b71fa3967baeaf53f5775eb (diff)
parent7fbf49b216895d6870f46f54ab8e1289f541a723 (diff)
downloadkristall-57819218dc9fcfcec75c92ae1db910c9709df379.tar.gz
Merge branch 'master' of github.com:MasterQ32/kristall
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile14
1 files changed, 13 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 4f77fd2..5668c79 100644
--- a/Makefile
+++ b/Makefile
@@ -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