Updated use of multiple expansion guard to use a sanitised string for the variable name. RCL_3
authorSimon Howkins <simonh@symbian.org>
Wed, 03 Nov 2010 14:37:41 +0000
branchRCL_3
changeset 44 b4d0e228036c
parent 43 4bd2599cdfb5
child 46 476f0ee3c373
Updated use of multiple expansion guard to use a sanitised string for the variable name.
gfxconversion/mifconv/makefile_templates/mifconv.flm
--- a/gfxconversion/mifconv/makefile_templates/mifconv.flm	Mon Oct 25 11:12:42 2010 +0100
+++ b/gfxconversion/mifconv/makefile_templates/mifconv.flm	Wed Nov 03 14:37:41 2010 +0000
@@ -69,9 +69,12 @@
 	$(if $1,$(call groupsvgin10,$(wordlist 11,$(words $1),$1)),true)
 endef
 
+MIFCONV_GUARD:=$(call sanitise,TARGET_$(TARGETFILE))
+
 define generatemif
 
-TARGET_$(TARGETFILE):=1
+$(MIFCONV_GUARD):=1
+
 MIFCONVOPTS:=$(MIFCONVOPTS)
 BITMAPS:=$(addsuffix .bmp,$(BITMAPBASESOURCES))
 
@@ -100,7 +103,7 @@
 
 endef
 
-ifeq ($(TARGET_$(TARGETFILE)),)
+ifeq ($($(MIFCONV_GUARD)),)
 $(eval $(call generatemif))
 endif