summaryrefslogtreecommitdiffstats
path: root/UI
diff options
context:
space:
mode:
Diffstat (limited to 'UI')
-rw-r--r--UI/Qt/Makefile.inc16
1 files changed, 13 insertions, 3 deletions
diff --git a/UI/Qt/Makefile.inc b/UI/Qt/Makefile.inc
index b4ac936..143f744 100644
--- a/UI/Qt/Makefile.inc
+++ b/UI/Qt/Makefile.inc
@@ -1,18 +1,28 @@
TARGETS += qt
CLEAN_TARGETS += clean-qt
+ifeq ($(WIN32),1)
+QT_MAKE=nmake
+else
+QT_MAKE=$(MAKE)
+endif
+
+
.PHONY: qt
qt: UI/Qt/Makefile
- $(MAKE) -C UI/Qt
+ cd UI/Qt && $(QT_MAKE)
.PHONY: clean-qt
clean-qt:
if [ -f "UI/Qt/Makefile" ]; then \
- $(MAKE) -C UI/Qt clean; \
+ cd UI/Qt && $(QT_MAKE) clean; \
fi
-UI/Qt/Makefile: UI/Qt/DefaultTheme.qrc
+UI/Qt/Makefile: UI/Qt/DefaultTheme.qrc UI/Qt/Swiften.pri
cd UI/Qt && $(QMAKE) Swift.pro
+UI/Qt/Swiften.pri:
+ cd UI/Qt && ./qmakeish.py ../../Makefile > Swiften.pri
+
UI/Qt/DefaultTheme.qrc:
cd UI/Qt && ../../tools/ThemeQRC.py ../../resources/themes/Default > DefaultTheme.qrc