-
Notifications
You must be signed in to change notification settings - Fork 9
/
Makefile
45 lines (38 loc) · 1.26 KB
/
Makefile
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
DISTRO_TYPE ?= debug
TARGET_ARCH ?= x86
QMAKE ?= qmake
# If not set by OE then use desktop staging locations
INCLUDE_DIR ?= $(STAGING_DIR)/include
LIB_DIR ?= $(STAGING_DIR)/lib
STAGING_INCDIR ?= $(INCLUDE_DIR)
STAGING_LIBDIR ?= $(LIB_DIR)
.PHONY: all
all:
$(MAKE) --directory=widgets
$(MAKE) --directory=misc
$(MAKE) --directory=qbsplugin
$(MAKE) --directory=qtwebkitplugin
.PHONY: configure
configure:
$(QMAKE) widgets/widgets.pro -o widgets/Makefile
$(QMAKE) misc/misc.pro -o misc/Makefile
$(QMAKE) qbsplugin/qbsplugin.pro -o qbsplugin/Makefile
$(QMAKE) qtwebkitplugin/qtwebkitplugin.pro -o qtwebkitplugin/Makefile
.PHONY: stage
stage:
$(MAKE) --directory=widgets install
$(MAKE) --directory=misc install
$(MAKE) --directory=qbsplugin install
$(MAKE) --directory=qtwebkitplugin install
.PHONY: install
install:
$(AT)install -d $(INSTALL_DIR)/usr/plugins/platforms
$(AT)install -m 555 qbsplugin/libqbsplugin.so $(INSTALL_DIR)/usr/plugins/platforms/
$(AT)install -d $(INSTALL_DIR)/usr/plugins/webkit/
$(AT)install -m 555 qtwebkitplugin/libqtwebkitplugin.so $(INSTALL_DIR)/usr/plugins/webkit/
.PHONY: clean
clean:
$(MAKE) --directory=widgets clean
$(MAKE) --directory=misc clean
$(MAKE) --directory=qbsplugin clean
$(MAKE) --directory=qtwebkitplugin clean