summaryrefslogtreecommitdiffstatshomepage
path: root/makefile
diff options
context:
space:
mode:
author Miodrag Milanovic <mmicko@gmail.com>2015-04-01 12:09:38 +0200
committer Miodrag Milanovic <mmicko@gmail.com>2015-04-01 12:09:38 +0200
commit33387befdb83b2fee006d7f785ce86d3ac24bae6 (patch)
treec01bdd978e96dfd81d10a1a0b40d059c20371616 /makefile
parent627b7c61dcc3ab194b55a9d7e51e29fa43dbcf07 (diff)
Ignore moc missing if MOC_FILES is empty (nw)
Diffstat (limited to 'makefile')
-rw-r--r--makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/makefile b/makefile
index c76b4e03514..bea948dcb7f 100644
--- a/makefile
+++ b/makefile
@@ -750,7 +750,9 @@ MOCTST = $(shell which moc-qt4 2>/dev/null)
ifeq '$(MOCTST)' ''
MOCTST = $(shell which moc 2>/dev/null)
ifeq '$(MOCTST)' ''
+ifneq '$(MOC_FILES)' ''
$(error Qt's Meta Object Compiler (moc) wasn't found!)
+endif
else
MOC = $(MOCTST)
endif