58 $(EXPORTEDSTRINGTABLEHEADER): $(STRINGTABLEHEADER) |
56 $(EXPORTEDSTRINGTABLEHEADER): $(STRINGTABLEHEADER) |
59 $(call startrule,exportstringtableheader,FORCESUCCESS) \ |
57 $(call startrule,exportstringtableheader,FORCESUCCESS) \ |
60 $(GNUCP) '$(STRINGTABLEHEADER)' '$$@' \ |
58 $(GNUCP) '$(STRINGTABLEHEADER)' '$$@' \ |
61 $(call endrule,exportstringtableheader) |
59 $(call endrule,exportstringtableheader) |
62 |
60 |
63 CLEANEXPORTS:=$(EXPORTEDSTRINGTABLEHEADER) |
|
64 RELEASEEXPORTS:=$(EXPORTEDSTRINGTABLEHEADER) |
61 RELEASEEXPORTS:=$(EXPORTEDSTRINGTABLEHEADER) |
65 endef |
62 endef |
66 |
63 |
67 define genstringtable |
64 define genstringtable |
68 $(STRINGTABLECPP) : $(STRINGTABLEHEADER) |
65 $(STRINGTABLECPP) : $(STRINGTABLEHEADER) |
81 $(if $(EXPORTPATH),$(eval $(exportstringtableheader)),) |
78 $(if $(EXPORTPATH),$(eval $(exportstringtableheader)),) |
82 $(if $(EXPORTPATH),,$(eval EXPORT:: $(STRINGTABLEHEADER))) |
79 $(if $(EXPORTPATH),,$(eval EXPORT:: $(STRINGTABLEHEADER))) |
83 $(eval $(genstringtable)) |
80 $(eval $(genstringtable)) |
84 |
81 |
85 |
82 |
86 ## Clean up and log releasables (using eval to avoid target specific variables) |
83 ## Clean up and log releasables |
87 $(eval $(call GenerateStandardCleanTarget,$(CLEANTARGETS),$(CREATABLEPATHS),)) |
84 $(call raptor_clean,$(CLEANTARGETS)) |
88 $(eval $(call GenerateStandardCleanTarget,$(CLEANEXPORTS),,CLEANEXPORT)) |
|
89 # make the output directories while reading makefile - some build engines prefer this |
85 # make the output directories while reading makefile - some build engines prefer this |
90 $(call makepath,$(CREATABLEPATHS)) |
86 $(call makepath,$(CREATABLEPATHS)) |
91 $(eval $(call whatmacro,$(RELEASEEXPORTS),WHATSTRINGTABLE)) |
87 $(call raptor_release,$(RELEASEEXPORTS),STRINGTABLE) |
92 |
88 |
93 ######################## |
|
94 # SBSv1 example: |
|
95 ######################## |
|
96 # GENERATED_FILES= \ |
|
97 # $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.cpp \ |
|
98 # $(EPOCROOT)epoc32\include\WspParamConstants.h |
|
99 # |
|
100 # $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.cpp : ..\strings\WspParamConstants.st |
|
101 # perl -S ecopyfile.pl ..\strings\WspParamConstants.st $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.st |
|
102 # perl $(EPOCROOT)epoc32\tools\stringtable.pl $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.st |
|
103 # |
|
104 # $(EPOCROOT)epoc32\include\WspParamConstants.h : $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.cpp |
|
105 # perl -S ecopyfile.pl $(EPOCROOT)epoc32\build\generated\http\WspParamConstants.h $(EPOCROOT)epoc32\include\WspParamConstants.h |
|
106 # |
|