mkspecs/symbian-sbsv2/flm/qt/ts2qm.flm
author Dremov Kirill (Nokia-D-MSW/Tampere) <kirill.dremov@nokia.com>
Fri, 14 May 2010 16:40:13 +0300
changeset 22 79de32ba3296
parent 18 2f34d5167611
child 23 89e065397ea6
permissions -rw-r--r--
Revision: 201017 Kit: 201019

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

# FLM to convert .ts to .qm

LRELEASE:=$(EPOCROOT)/epoc32/tools/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