summaryrefslogtreecommitdiffstats
blob: 570e63150dca04c54aa0375a8cf60dc7335e4dde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
TARGETS += qt
CLEAN_TARGETS += clean-qt

ifeq ($(WIN32),1)
QT_MAKE=nmake
else
QT_MAKE=$(MAKE)
endif


.PHONY: qt
qt: UI/Qt/Makefile Swiften/Swiften.a $(BUNDLED_LIBS)
	cd UI/Qt && $(QT_MAKE)

.PHONY: clean-qt
clean-qt:
	if [ -f "UI/Qt/Makefile" ]; then \
		cd UI/Qt && $(QT_MAKE) clean; \
	fi

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