| 7 |
7 |
VERSION += (Rev. $(REVNO)) |
| 8 |
8 |
endif |
| 9 |
9 |
|
|
10 |
# Change at what percent we translate |
|
11 |
ifneq ($(PERCREQ),) |
|
12 |
PERREQ = -t $(PERCREQ) |
|
13 |
endif |
|
14 |
|
| 10 |
15 |
# All available translations |
| 11 |
16 |
TRANSALLUSER = $(shell basename -s .po -a user-docs/po/*.po) |
| 12 |
17 |
TRANSALLCONTR = $(shell basename -s .po -a contributor-docs/po/*.po) |
| … |
| 53 |
58 |
ifeq ($(TRANSLATIONS),) |
| 54 |
59 |
ifneq ($(wildcard user-docs/po/LINGUAS),) |
| 55 |
60 |
cd user-docs; \ |
| 56 |
|
../scripts/translate.sh -u |
|
61 |
../scripts/translate.sh $(PERREQ) -u |
| 57 |
62 |
@touch user-docs/update-translations |
| 58 |
63 |
endif |
| 59 |
64 |
endif |
| … |
| 78 |
83 |
ifeq ($(TRANSLATIONS),) |
| 79 |
84 |
ifneq ($(wildcard contributor-docs/po/LINGUAS),) |
| 80 |
85 |
cd contributor-docs; \ |
| 81 |
|
../scripts/translate.sh -u |
|
86 |
../scripts/translate.sh $(PERREQ) -u |
| 82 |
87 |
@touch contributor-docs/update-translations |
| 83 |
88 |
endif |
| 84 |
89 |
endif |
| … |
| 112 |
117 |
$(MAKE) -C user-docs translate |
| 113 |
118 |
|
| 114 |
119 |
user-html-translations: |
| 115 |
|
$(MAKE) -C user-docs html-translations |
|
120 |
$(MAKE) -C user-docs html-translations PERREQ="$(PERREQ)" |
| 116 |
121 |
|
| 117 |
122 |
user-pdf-translations: |
| 118 |
|
$(MAKE) -C user-docs pdf-translations |
|
123 |
$(MAKE) -C user-docs pdf-translations PERREQ="$(PERREQ)" |
| 119 |
124 |
|
| 120 |
125 |
contributor-html: |
| 121 |
126 |
$(MAKE) -C contributor-docs html |
| … |
| 130 |
135 |
$(MAKE) -C contributor-docs translate |
| 131 |
136 |
|
| 132 |
137 |
contributor-html-translations: |
| 133 |
|
$(MAKE) -C contributor-docs html-translations |
|
138 |
$(MAKE) -C contributor-docs html-translations PERREQ="$(PERREQ)" |
| 134 |
139 |
|
| 135 |
140 |
contributor-pdf-translations: |
| 136 |
|
$(MAKE) -C contributor-docs pdf-translations |
|
141 |
$(MAKE) -C contributor-docs pdf-translations PERREQ="$(PERREQ)" |
| 137 |
142 |
|
| 138 |
143 |
test: |
| 139 |
144 |
$(MAKE) -C user-docs test |