summaryrefslogtreecommitdiff
path: root/scripts/newbitmaps/strings/localized_text/Makefile
blob: 1e26b638f36c95f62d3c858b40c9013188138c6e (plain)
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
# Copyright (c) 2011 The Chromium OS Authors. All rights reserved.
# Use of this source code is governed by a BSD-style license that can be
# found in the LICENSE file.

LOCALES=ar bg ca cs da de el en en_GB es es_419 et fa fi fil fr hi hr hu \
	id it iw ja ko lt lv nl no pl pt_BR pt_PT ro ru sk sl sr sv th tr \
	uk vi zh_CN zh_TW

# Use "make PT=15" for 800x600 (x86)
PT=15


DIR_TARGETS=$(foreach DIR,$(LOCALES),$(DIR)-dir)

CVT=../text_to_bmp --point=$(PT)


default: $(DIR_TARGETS)

%-dir:
	$(CVT) $(subst -dir,,$@)/*.txt

ar-dir:
	$(CVT) --rtl --font="Droid Sans Arabic" $(subst -dir,,$@)/*.txt

fa-dir:
	$(CVT) --rtl $(subst -dir,,$@)/*.txt

hi-dir:
	$(CVT) --font="Lohit-Hindi" $(subst -dir,,$@)/*.txt

iw-dir:
	$(CVT) --rtl --font="Droid Sans Hebrew" $(subst -dir,,$@)/*.txt

ja-dir:
	$(CVT) --font="IPAPGothic" $(subst -dir,,$@)/*.txt

ko-dir:
	$(CVT) --font="NanumGothic" $(subst -dir,,$@)/*.txt

th-dir:
	$(CVT) --font="Droid Sans Thai" $(subst -dir,,$@)/*.txt

zh_CN-dir:
	$(CVT) --font="Droid Sans Fallback" $(subst -dir,,$@)/*.txt

zh_TW-dir:
	$(CVT) --font="Droid Sans Fallback" $(subst -dir,,$@)/*.txt



$(DIR_TARGETS) : FORCE

.PHONY: FORCE