99 $(INFOFILE):: |
99 $(INFOFILE):: |
100 @if [ ! -d $(EPOCROOT)/epoc32/localisation/group ]; then $(GNUMKDIR) -p $(EPOCROOT)/epoc32/localisation/group; fi |
100 @if [ ! -d $(EPOCROOT)/epoc32/localisation/group ]; then $(GNUMKDIR) -p $(EPOCROOT)/epoc32/localisation/group; fi |
101 @if [ ! -f $$@ ]; then echo "DATADIR: /$(RSSBASENAME)" > $$@ ; fi |
101 @if [ ! -f $$@ ]; then echo "DATADIR: /$(RSSBASENAME)" > $$@ ; fi |
102 @echo -e "\n/z$(TARGETPATH)/$(TARGET_lower).rsc : $(RSSBASENAME).rpp" >> $$@ |
102 @echo -e "\n/z$(TARGETPATH)/$(TARGET_lower).rsc : $(RSSBASENAME).rpp" >> $$@ |
103 |
103 |
104 CLEANTARGETS:=$$(CLEANTARGETS) $(DESTRPP) $(INFOFILE) |
|
105 |
|
106 endif |
104 endif |
107 endef |
105 endef |
108 |
106 |
109 $(eval $(call CreateRppAndInfo)) |
107 $(eval $(call CreateRppAndInfo)) |
110 endif |
108 endif |
172 |
170 |
173 RELEASABLES:=$$(RELEASABLES) $(2) |
171 RELEASABLES:=$$(RELEASABLES) $(2) |
174 |
172 |
175 ifeq ($(TARGET_$(call sanitise,$2)),) |
173 ifeq ($(TARGET_$(call sanitise,$2)),) |
176 TARGET_$(call sanitise,$2):=1 |
174 TARGET_$(call sanitise,$2):=1 |
177 CLEANTARGETS:=$$(CLEANTARGETS) $2 |
|
178 |
175 |
179 RESOURCE:: $2 |
176 RESOURCE:: $2 |
180 ## perform additional copies of binaries |
177 ## perform additional copies of binaries |
181 # |
178 # |
182 # Only certain builds require further copies of the generated resource binaries |
179 # Only certain builds require further copies of the generated resource binaries |
199 |
196 |
200 RELEASABLES:=$$(RELEASABLES) $(1) |
197 RELEASABLES:=$$(RELEASABLES) $(1) |
201 |
198 |
202 ifeq ($(TARGET_$(call sanitise,$1)),) |
199 ifeq ($(TARGET_$(call sanitise,$1)),) |
203 TARGET_$(call sanitise,$1):=1 |
200 TARGET_$(call sanitise,$1):=1 |
204 CLEANTARGETS:=$$(CLEANTARGETS) $(1) |
|
205 |
201 |
206 $(if $(FLMDEBUG),$(info generateresource: $(1) from $(2) LANG:$(3)),) |
202 $(if $(FLMDEBUG),$(info generateresource: $(1) from $(2) LANG:$(3)),) |
207 |
203 |
208 |
204 |
209 RESOURCE:: $(1) |
205 RESOURCE:: $(1) |
234 |
230 |
235 RELEASABLES:= $$(RELEASABLES) $(1) |
231 RELEASABLES:= $$(RELEASABLES) $(1) |
236 |
232 |
237 ifeq ($(TARGET_$(call sanitise,$1)),) |
233 ifeq ($(TARGET_$(call sanitise,$1)),) |
238 TARGET_$(call sanitise,$1):=1 |
234 TARGET_$(call sanitise,$1):=1 |
239 CLEANTARGETS:= $$(CLEANTARGETS) $(1) |
|
240 $(if $(FLMDEBUG),$(info resourceheader: $(1) from $(2) LANG:$(3))) |
235 $(if $(FLMDEBUG),$(info resourceheader: $(1) from $(2) LANG:$(3))) |
241 |
236 |
242 RESOURCE:: $(1) |
237 RESOURCE:: $(1) |
243 |
238 |
244 $(1): $(2) $(RCOMP) |
239 $(1): $(2) $(RCOMP) |
280 ## .rfi generation in support of the gccxml build |
275 ## .rfi generation in support of the gccxml build |
281 ## Note that .rfi files are created from the dependency files generated from preprocessing resources to create .rpp files |
276 ## Note that .rfi files are created from the dependency files generated from preprocessing resources to create .rpp files |
282 ifneq ($(RFIFILE),) |
277 ifneq ($(RFIFILE),) |
283 RESOURCE:: $(RFIFILE) |
278 RESOURCE:: $(RFIFILE) |
284 RELEASABLES:=$(RELEASABLES) $(RFIFILE) |
279 RELEASABLES:=$(RELEASABLES) $(RFIFILE) |
285 CLEANTARGETS:=$(CLEANTARGETS) $(RFIFILE) |
|
286 CREATABLEPATHS:=$(CREATABLEPATHS) $(dir $(RFIFILE)) |
280 CREATABLEPATHS:=$(CREATABLEPATHS) $(dir $(RFIFILE)) |
287 |
281 |
288 RPPFILES:=$(foreach L,$(LANGUAGES:SC=sc),$(INTERBASE)_$(L).rpp) |
282 RPPFILES:=$(foreach L,$(LANGUAGES:SC=sc),$(INTERBASE)_$(L).rpp) |
289 $(eval $(call generaterfifile,$(RFIFILE),$(RPPFILES),$(addsuffix .d,$(RPPFILES)))) |
283 $(eval $(call generaterfifile,$(RFIFILE),$(RPPFILES),$(addsuffix .d,$(RPPFILES)))) |
290 endif |
284 endif |
291 |
285 |
292 |
286 |
293 ## Clean up |
287 ## Clean up |
294 $(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS),$(CREATABLEPATHS),)) |
288 $(call raptor_clean,$(CLEANTARGETS)) |
295 # make the output directories while reading makefile - some build engines prefer this |
289 # make the output directories while reading makefile - some build engines prefer this |
296 $(call makepath,$(CREATABLEPATHS)) |
290 $(call makepath,$(CREATABLEPATHS)) |
297 |
291 |
298 # for the abld -what target |
292 # for the --what option and the log file |
299 RELEASABLES:=$(RELEASABLES) $(DESTRPP) $(INFOFILE) |
293 RELEASABLES:=$(RELEASABLES) $(DESTRPP) $(INFOFILE) |
300 $(eval $(call whatmacro,$(RELEASABLES),WHATRESOURCES)) |
294 $(call raptor_release,$(RELEASABLES),RESOURCE) |
301 |
295 |