-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathpkg_lang.mk
128 lines (114 loc) · 4.61 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
#******************************************************************************
# 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.
#
#******************************************************************************
NGTEXTDATS = \
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_lat.dat \
pkg/fxdata/gtext_pol.dat \
pkg/fxdata/gtext_rus.dat \
pkg/fxdata/gtext_spa.dat \
pkg/fxdata/gtext_swe.dat \
pkg/fxdata/gtext_eng.dat
NCTEXTDATS = \
pkg/campgns/ancntkpr/text_eng.dat \
pkg/campgns/ancntkpr/text_fre.dat \
pkg/campgns/ancntkpr/text_ger.dat \
pkg/campgns/ancntkpr/text_pol.dat \
pkg/campgns/burdnimp/text_eng.dat \
pkg/campgns/burdnimp/text_pol.dat \
pkg/campgns/cqarctic/text_eng.dat \
pkg/campgns/cqarctic/text_pol.dat \
pkg/campgns/dstninja/text_eng.dat \
pkg/campgns/dstninja/text_pol.dat \
pkg/campgns/evilkeep/text_eng.dat \
pkg/campgns/evilkeep/text_fre.dat \
pkg/campgns/evilkeep/text_ger.dat \
pkg/campgns/evilkeep/text_pol.dat \
pkg/campgns/grkreign/text_eng.dat \
pkg/campgns/grkreign/text_pol.dat \
pkg/campgns/lqizgood/text_eng.dat \
pkg/campgns/lqizgood/text_pol.dat \
pkg/campgns/ncastles/text_eng.dat \
pkg/campgns/ncastles/text_pol.dat \
pkg/campgns/pstunded/text_eng.dat \
pkg/campgns/pstunded/text_pol.dat \
pkg/campgns/questfth/text_eng.dat \
pkg/campgns/questfth/text_fre.dat \
pkg/campgns/questfth/text_pol.dat \
pkg/campgns/twinkprs/text_eng.dat \
pkg/campgns/twinkprs/text_pol.dat \
pkg/campgns/undedkpr/text_eng.dat \
pkg/campgns/undedkpr/text_chi.dat \
pkg/campgns/undedkpr/text_pol.dat
pkg-languages: $(NGTEXTDATS) $(NCTEXTDATS) pkg-before
# Creation of engine language files from PO/POT files
pkg/fxdata/gtext_jpn.dat: lang/gtext_jpn.po tools/po2ngdat/res/char_encoding_tbl_jp.txt $(POTONGDAT)
-$(ECHO) 'Building language file: $@'
$(POTONGDAT) -o "$@" -e "$(word 2,$^)" "$<"
-$(ECHO) 'Finished building: $@'
-$(ECHO) ' '
pkg/fxdata/gtext_rus.dat: lang/gtext_rus.po tools/po2ngdat/res/char_encoding_tbl_ru.txt $(POTONGDAT)
-$(ECHO) 'Building language file: $@'
$(POTONGDAT) -o "$@" -e "$(word 2,$^)" "$<"
-$(ECHO) 'Finished building: $@'
-$(ECHO) ' '
pkg/fxdata/gtext_chi.dat: lang/gtext_chi.po tools/po2ngdat/res/char_encoding_tbl_ch.txt $(POTONGDAT)
-$(ECHO) 'Building language file: $@'
$(POTONGDAT) -o "$@" -e "$(word 2,$^)" "$<"
-$(ECHO) 'Finished building: $@'
-$(ECHO) ' '
pkg/fxdata/gtext_cht.dat: lang/gtext_cht.po tools/po2ngdat/res/char_encoding_tbl_ch.txt $(POTONGDAT)
-$(ECHO) 'Building language file: $@'
$(POTONGDAT) -o "$@" -e "$(word 2,$^)" "$<"
-$(ECHO) 'Finished building: $@'
-$(ECHO) ' '
pkg/fxdata/gtext_%.dat: lang/gtext_%.po tools/po2ngdat/res/char_encoding_tbl_eu.txt $(POTONGDAT)
-$(ECHO) 'Building language file: $@'
$(POTONGDAT) -o "$@" -e "$(word 2,$^)" "$<"
-$(ECHO) 'Finished building: $@'
-$(ECHO) ' '
pkg/fxdata/gtext_%.dat: lang/gtext_%.pot tools/po2ngdat/res/char_encoding_tbl_eu.txt $(POTONGDAT)
-$(ECHO) 'Building language file: $@'
$(POTONGDAT) -o "$@" -e "$(word 2,$^)" "$<"
-$(ECHO) 'Finished building: $@'
-$(ECHO) ' '
# Creation of engine language files for campaigns
define define_campaign_language_rule
pkg/campgns/$(1)/%.dat: lang/$(1)/%.po tools/po2ngdat/res/char_encoding_tbl_eu.txt $$(POTONGDAT)
-$$(ECHO) 'Building language file: $$@'
@$$(MKDIR) $$(@D)
$$(POTONGDAT) -o "$$@" -e "$$(word 2,$$^)" "$$<"
-$$(ECHO) 'Finished building: $$@'
-$$(ECHO) ' '
pkg/campgns/$(1)/%.dat: lang/$(1)/%.pot tools/po2ngdat/res/char_encoding_tbl_eu.txt $$(POTONGDAT)
-$$(ECHO) 'Building language file: $$@'
@$$(MKDIR) $$(@D)
$$(POTONGDAT) -o "$$@" -e "$$(word 2,$$^)" "$$<"
-$$(ECHO) 'Finished building: $$@'
-$$(ECHO) ' '
endef
$(foreach campaign,$(sort $(CAMPAIGNS)),$(eval $(call define_campaign_language_rule,$(campaign))))
#******************************************************************************