mkspecs/symbian-sbsv2/flm/qt/ts2qm.flm
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Mon, 15 Mar 2010 12:43:09 +0200
branchRCL_3
changeset 6 dee5afe5301f
parent 5 d3bac044e0f0
permissions -rw-r--r--
Revision: 201008 Kit: 201010

# /****************************************************************************
# **
# ** Copyright (C) 2009 Nokia Corporation and/or its subsidiary(-ies).
# ** Contact: 
# **
# ****************************************************************************/

# FLM to convert .ts to .qm

LRELEASE:=$(EPOCROOT)/epoc32/tools/qt/lrelease$(DOTEXE)
#TSFILE:=$(EPOCROOT)$(TSFILE)
#QMFILE:=$(EPOCROOT)$(QMFILE)

define ts2qm
$(QMFILE): $(TSFILE)
	$(call startrule,ts2qm) \
	$(LRELEASE) -silent -idbased $(TSFILE) -qm $(QMFILE) \
	$(call endrule,ts2qm)
endef
 
# Here a variable named "done_<sanitised $QMFILE>" gets created
GUARD:=done_$(call sanitise,$(QMFILE))
# If variable "done_..." not set, set it to 1, so that
# UREL and UDEB do not execute makesis twice on the same target
ifeq ($($(GUARD)),)
$(GUARD):=1
ALL:: $(QMFILE)
$(eval $(call ts2qm))
$(eval $(call whatmacro,$(QMFILE)))
$(eval $(call GenerateStandardCleanTarget,$(QMFILE),''))
endif