summaryrefslogtreecommitdiff
path: root/mkspecs/symbian-sbsv2/flm/qt/qmake_extra_pre_targetdep.flm
blob: 7c07a189270cc1b418d4bebd5e079ade616971ee (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
29
30
31
32
33
34
35
36
37
38
# /****************************************************************************
# **
# ** Copyright (C) 2015 The Qt Company Ltd.
# ** Contact: http://www.qt.io/licensing/
# **
# ** This file is part of symbian-sbsv2 mkspec.
# **
# ****************************************************************************/


SINGLETON:=$(call sanitise,TARGET_$(PREDEP_TARGET))

$(call makepathfor,$(PREDEP_TARGET))

ifeq ($(patsubst /epoc32/%,MATCH,$(firstword $(COMMAND))),MATCH)
COMMAND:=$(EPOCROOT)$(COMMAND)
endif

define qmake_extra_pre_targetdep
EXPORT:: $(PREDEP_TARGET)

# Prevent duplicate targets from being created
$(SINGLETON):=1

$(PREDEP_TARGET): $(DEPS)
	$(call startrule,qmake_extra_pre_targetdep,FORCESUCCESS) \
	$(COMMAND) \
	$(call endrule,qmake_extra_pre_targetdep)
endef

ifeq ($($(SINGLETON)),)
$(eval $(qmake_extra_pre_targetdep))
$(eval $(call GenerateStandardCleanTarget,$(PREDEP_TARGET),''))
$(eval $(call whatmacro,$(PREDEP_TARGET)))
endif