forked from dkfans/keeperfx
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pkg_lang.mk
202 lines (165 loc) · 8.02 KB
/
pkg_lang.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
#******************************************************************************
# Free implementation of Bullfrog's Dungeon Keeper strategy game.
#******************************************************************************
# @file tool_peresec.mk
# A script used by GNU Make to recompile the project.
# @par Purpose:
# Defines make rules for tools needed to build KeeperFX.
# Most tools can either by compiled from source or downloaded.
# @par Comment:
# None.
# @author Tomasz Lis
# @date 25 Jan 2009 - 02 Jul 2011
# @par Copying and copyrights:
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 2 of the License, or
# (at your option) any later version.
#
#******************************************************************************
LANGUAGE ?= eng
NGTEXTDATS = \
pkg/fxdata/gtext_eng.dat \
pkg/fxdata/gtext_chi.dat \
pkg/fxdata/gtext_cht.dat \
pkg/fxdata/gtext_cze.dat \
pkg/fxdata/gtext_dut.dat \
pkg/fxdata/gtext_fre.dat \
pkg/fxdata/gtext_ger.dat \
pkg/fxdata/gtext_ita.dat \
pkg/fxdata/gtext_jpn.dat \
pkg/fxdata/gtext_kor.dat \
pkg/fxdata/gtext_lat.dat \
pkg/fxdata/gtext_pol.dat \
pkg/fxdata/gtext_rus.dat \
pkg/fxdata/gtext_spa.dat \
pkg/fxdata/gtext_swe.dat
NCTEXTDATS = \
pkg/campgns/ami2019/text_eng.dat \
pkg/campgns/ami2019/text_chi.dat \
pkg/campgns/ami2019/text_spa.dat \
pkg/campgns/ancntkpr/text_eng.dat \
pkg/campgns/ancntkpr/text_chi.dat \
pkg/campgns/ancntkpr/text_fre.dat \
pkg/campgns/ancntkpr/text_ger.dat \
pkg/campgns/ancntkpr/text_pol.dat \
pkg/campgns/ancntkpr/text_spa.dat \
pkg/campgns/burdnimp/text_eng.dat \
pkg/campgns/burdnimp/text_chi.dat \
pkg/campgns/burdnimp/text_pol.dat \
pkg/campgns/burdnimp/text_spa.dat \
pkg/campgns/lqizgood/text_eng.dat \
pkg/campgns/lqizgood/text_chi.dat \
pkg/campgns/lqizgood/text_fre.dat \
pkg/campgns/lqizgood/text_pol.dat \
pkg/campgns/origplus/text_eng.dat \
pkg/campgns/origplus/text_chi.dat \
pkg/campgns/origplus/text_cht.dat \
pkg/campgns/origplus/text_cze.dat \
pkg/campgns/origplus/text_dut.dat \
pkg/campgns/origplus/text_fre.dat \
pkg/campgns/origplus/text_ger.dat \
pkg/campgns/origplus/text_ita.dat \
pkg/campgns/origplus/text_jpn.dat \
pkg/campgns/origplus/text_kor.dat \
pkg/campgns/origplus/text_lat.dat \
pkg/campgns/origplus/text_pol.dat \
pkg/campgns/origplus/text_rus.dat \
pkg/campgns/origplus/text_spa.dat \
pkg/campgns/origplus/text_swe.dat \
pkg/campgns/revlord/text_eng.dat \
pkg/campgns/revlord/text_chi.dat \
pkg/campgns/revlord/text_ger.dat \
pkg/campgns/revlord/text_spa.dat \
pkg/campgns/twinkprs/text_eng.dat \
pkg/campgns/twinkprs/text_chi.dat \
pkg/campgns/twinkprs/text_fre.dat \
pkg/campgns/twinkprs/text_jpn.dat \
pkg/campgns/twinkprs/text_pol.dat \
pkg/campgns/twinkprs/text_spa.dat \
pkg/campgns/undedkpr/text_eng.dat \
pkg/campgns/undedkpr/text_chi.dat \
pkg/campgns/undedkpr/text_ger.dat \
pkg/campgns/undedkpr/text_pol.dat \
pkg/campgns/undedkpr/text_spa.dat
MPTEXTDATS = \
pkg/levels/classic/text_eng.dat \
pkg/levels/classic/text_chi.dat \
pkg/levels/classic/text_fre.dat \
pkg/levels/classic/text_ger.dat \
pkg/levels/classic/text_spa.dat \
pkg/levels/standard/text_eng.dat \
pkg/levels/standard/text_chi.dat \
pkg/levels/standard/text_fre.dat \
pkg/levels/standard/text_ger.dat \
pkg/levels/standard/text_spa.dat
EU_CHAR_ENCODING = tools/po2ngdat/res/char_encoding_tbl_eu.txt
JP_CHAR_ENCODING = tools/po2ngdat/res/char_encoding_tbl_jp.txt
RU_CHAR_ENCODING = tools/po2ngdat/res/char_encoding_tbl_ru.txt
CH_CHAR_ENCODING = tools/po2ngdat/res/char_encoding_tbl_ch.txt
KR_CHAR_ENCODING = tools/po2ngdat/res/char_encoding_tbl_kr.txt
.PRECIOUS: $(EU_CHAR_ENCODING) $(JP_CHAR_ENCODING) $(RU_CHAR_ENCODING) $(CH_CHAR_ENCODING) $(KR_CHAR_ENCODING)
pkg-languages: $(NGTEXTDATS) $(NCTEXTDATS) $(MPTEXTDATS)
# Creation of Only single language engine language files from PO/POT files (for development)
pkg-lang-single: pkg/fxdata/gtext_$(LANGUAGE).dat
$(patsubst %/,%,$(sort $(dir $(NCTEXTDATS)))):
$(MKDIR) $@
$(patsubst %/,%,$(sort $(dir $(MPTEXTDATS)))):
$(MKDIR) $@
# Creation of engine language files from PO/POT files
pkg/fxdata/gtext_jpn.dat: lang/gtext_jpn.po $(POTONGDAT) $(JP_CHAR_ENCODING) | pkg/fxdata
$(POTONGDAT) -o $@ -e $(JP_CHAR_ENCODING) $< >/dev/null
pkg/fxdata/gtext_rus.dat: lang/gtext_rus.po $(POTONGDAT) $(RU_CHAR_ENCODING) | pkg/fxdata
$(POTONGDAT) -o $@ -e $(RU_CHAR_ENCODING) $< >/dev/null
pkg/fxdata/gtext_chi.dat: lang/gtext_chi.po $(POTONGDAT) $(CH_CHAR_ENCODING) | pkg/fxdata
$(POTONGDAT) -o $@ -e $(CH_CHAR_ENCODING) $< >/dev/null
pkg/fxdata/gtext_cht.dat: lang/gtext_cht.po $(POTONGDAT) $(CH_CHAR_ENCODING) | pkg/fxdata
$(POTONGDAT) -o $@ -e $(CH_CHAR_ENCODING) $< >/dev/null
pkg/fxdata/gtext_kor.dat: lang/gtext_kor.po $(POTONGDAT) $(KR_CHAR_ENCODING) | pkg/fxdata
$(POTONGDAT) -o $@ -e $(KR_CHAR_ENCODING) $< >/dev/null
pkg/fxdata/gtext_%.dat: lang/gtext_%.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/fxdata
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/fxdata/gtext_%.dat: lang/gtext_%.pot $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/fxdata
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_chi.dat : lang/%/text_chi.po $(POTONGDAT) $(CH_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(CH_CHAR_ENCODING) $< >/dev/null
pkg/%/text_cht.dat : lang/%/text_cht.po $(POTONGDAT) $(CH_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(CH_CHAR_ENCODING) $< >/dev/null
pkg/%/text_cze.dat: lang/%/text_cze.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_dut.dat: lang/%/text_dut.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_fre.dat: lang/%/text_fre.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_ger.dat: lang/%/text_ger.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_ita.dat: lang/%/text_ita.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_kor.dat: lang/%/text_kor.po $(POTONGDAT) $(KR_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(KR_CHAR_ENCODING) $< >/dev/null
pkg/%/text_jpn.dat: lang/%/text_jpn.po $(POTONGDAT) $(JP_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(JP_CHAR_ENCODING) $< >/dev/null
pkg/%/text_lat.dat: lang/%/text_lat.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_pol.dat: lang/%/text_pol.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_rus.dat: lang/%/text_rus.po $(POTONGDAT) $(RU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(RU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_spa.dat: lang/%/text_spa.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_swe.dat: lang/%/text_swe.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/landview_pol.dat: lang/%/landview_pol.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/landview_dut.dat: lang/%/landview_dut.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/landview_fre.dat: lang/%/landview_fre.po $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/landview_kor.dat: lang/%/landview_kor.po $(POTONGDAT) $(KR_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(KR_CHAR_ENCODING) $< >/dev/null
pkg/%/landview_rus.dat: lang/%/landview_rus.po $(POTONGDAT) $(RU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(RU_CHAR_ENCODING) $< >/dev/null
pkg/%/text_eng.dat: lang/%/text_eng.pot $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null
pkg/%/landview_eng.dat: lang/%/landview_eng.pot $(POTONGDAT) $(EU_CHAR_ENCODING) | pkg/%
$(POTONGDAT) -o $@ -e $(EU_CHAR_ENCODING) $< >/dev/null