LanguageTool: don't crash if REST protocol isn't set
[LibreOffice.git] / extras / CustomTarget_tplpresnt.mk
blob64c5bdd720e3ed9205cfd8f1f8f88aeb4cc925f6
1 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
3 # This file is part of the LibreOffice project.
5 # This Source Code Form is subject to the terms of the Mozilla Public
6 # License, v. 2.0. If a copy of the MPL was not distributed with this
7 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
10 $(eval $(call gb_CustomTarget_CustomTarget,extras/source/templates/presnt))
12 extras_TEMPLATES_PRESENTATIONS := \
13 Beehive \
14 Blue_Curve \
15 Blueprint_Plans \
16 Candy \
17 DNA \
18 Focus \
19 Forestbird \
20 Grey_Elegant \
21 Growing_Liberty \
22 Freshes \
23 Inspiration \
24 Lights \
25 Metropolis \
26 Midnightblue \
27 Nature_Illustration \
28 Pencil \
29 Piano \
30 Portfolio \
31 Progress \
32 Sunset \
33 Vintage \
34 Vivid \
35 Yellow_Idea \
37 extras_PRESENTATIONS_XMLFILES := \
38 Beehive/content.xml \
39 Beehive/META-INF/manifest.xml \
40 Beehive/meta.xml \
41 Beehive/styles.xml \
42 Beehive/Thumbnails/thumbnail.png \
43 Blue_Curve/content.xml \
44 Blue_Curve/META-INF/manifest.xml \
45 Blue_Curve/meta.xml \
46 Blue_Curve/styles.xml \
47 Blue_Curve/Thumbnails/thumbnail.png \
48 Blueprint_Plans/content.xml \
49 Blueprint_Plans/META-INF/manifest.xml \
50 Blueprint_Plans/meta.xml \
51 Blueprint_Plans/Pictures/10000000000000580000001F99D2A38C014B254B.png \
52 Blueprint_Plans/Pictures/100000000000033C0000026D847ACE982C6E20B6.png \
53 Blueprint_Plans/Pictures/10000000000004220000031A5C2E04AB7C51FB60.png \
54 Blueprint_Plans/Pictures/1000020100000500000002D03918081590A75FCF.png \
55 Blueprint_Plans/Pictures/1000020100000500000002D0F25E20EA381A5EBD.png \
56 Blueprint_Plans/styles.xml \
57 Blueprint_Plans/Thumbnails/thumbnail.png \
58 Candy/content.xml \
59 Candy/META-INF/manifest.xml \
60 Candy/meta.xml \
61 Candy/styles.xml \
62 Candy/Thumbnails/thumbnail.png \
63 Candy/Pictures/10000000000004A800000500DD5BB9FFED422172.png \
64 Candy/Pictures/10000000000005000000050014DEA376B6E67205.png \
65 Candy/Pictures/1000000000000780000004383B6CE268A9802A07.png \
66 Candy/Pictures/10000000000007800000043870026B1FACED0D1B.png \
67 Candy/Pictures/100002010000070E0000007A072587FC46AD7996.png \
68 Candy/Pictures/100002010000078100000028E4140FADDA6D818B.png \
69 DNA/content.xml \
70 DNA/META-INF/manifest.xml \
71 DNA/meta.xml \
72 DNA/styles.xml \
73 DNA/Thumbnails/thumbnail.png \
74 Focus/content.xml \
75 Focus/META-INF/manifest.xml \
76 Focus/meta.xml \
77 Focus/styles.xml \
78 Focus/Thumbnails/thumbnail.png \
79 Forestbird/content.xml \
80 Forestbird/META-INF/manifest.xml \
81 Forestbird/meta.xml \
82 Forestbird/styles.xml \
83 Forestbird/Thumbnails/thumbnail.png \
84 Grey_Elegant/meta.xml \
85 Grey_Elegant/styles.xml \
86 Grey_Elegant/content.xml \
87 Grey_Elegant/META-INF/manifest.xml \
88 Grey_Elegant/Thumbnails/thumbnail.png \
89 Grey_Elegant/Pictures/100002010000001900000019CA03B954885E470D.png \
90 Grey_Elegant/Pictures/1000000000000007000000075D9D31963C8C0E25.jpg \
91 Grey_Elegant/Pictures/1000000000000007000000076677E5BE1EDAF335.jpg \
92 Grey_Elegant/Pictures/100001E0000002950000029531405702AAD800D0.svg \
93 Grey_Elegant/Pictures/10000201000003300000026455AC9786240DB2F8.png \
94 Grey_Elegant/Pictures/100002510000029500000295D9236A158400ED63.svg \
95 Grey_Elegant/Pictures/10000109000002950000029599843C084F54196C.svg \
96 Grey_Elegant/Pictures/100002800000029500000295458C6106AED5C839.svg \
97 Grey_Elegant/Pictures/1000DC810000A57800007C20AABC768B7E7ACB30.svg \
98 Grey_Elegant/Pictures/10000201000000870000001D01E2F59468D22926.png \
99 Grey_Elegant/Pictures/100002010000001900000019B19ADF33FD67D860.png \
100 Grey_Elegant/Pictures/1000020100000019000000194F0EE08BB7018624.png \
101 Grey_Elegant/Pictures/10000201000000190000001967D610D5BD5B9486.png \
102 Grey_Elegant/Pictures/10000201000000190000001945D72F17575B71B4.png \
103 Grey_Elegant/Pictures/10000000000001920000019230489F7A89351262.jpg \
104 Grey_Elegant/Pictures/100002CA0000029500000295A190AE1D987B676B.svg \
105 Growing_Liberty/meta.xml \
106 Growing_Liberty/styles.xml \
107 Growing_Liberty/content.xml \
108 Growing_Liberty/META-INF/manifest.xml \
109 Growing_Liberty/Thumbnails/thumbnail.png \
110 Growing_Liberty/Pictures/10000201000001F10000029333ED1BC48076B5C4.png \
111 Growing_Liberty/Pictures/10000000000007800000043801760C0AF0E62E0B.jpg \
112 Growing_Liberty/Pictures/10000000000007800000043827B5F54D1F4F498F.jpg \
113 Growing_Liberty/Pictures/100002010000050000000020D23CB52AADBCAD4A.png \
114 Growing_Liberty/Pictures/10000201000001F3000003548E51808DE171DA02.png \
115 Growing_Liberty/Pictures/10000C8F0000034200004A6ABD021DA9BD39254C.svg \
116 Growing_Liberty/Pictures/10000C1C0000034200004A6A2C92F38BC117DD3C.svg \
117 Growing_Liberty/Pictures/1000020100000020000002D01396E0588E1EBFBA.png \
118 Growing_Liberty/Pictures/10000201000005000000002010F5D1670B946E0C.png \
119 Growing_Liberty/Pictures/10000CA90000844B000003426738F0E80CCFF9F3.svg \
120 Growing_Liberty/Pictures/10000C340000844B000003422549B923A55839CC.svg \
121 Growing_Liberty/Pictures/1000020100000020000002D04D74467F50F635D0.png \
122 Growing_Liberty/Pictures/10000201000001F000000351DA39462E363D7ED3.png \
123 Growing_Liberty/Pictures/100002010000016A0000029374C9F2B8F26392AD.png \
124 Freshes/META-INF/manifest.xml \
125 Freshes/Object_1/content.xml \
126 Freshes/Object_1/meta.xml \
127 Freshes/Object_1/styles.xml \
128 Freshes/Object_2/content.xml \
129 Freshes/Object_2/meta.xml \
130 Freshes/Object_2/styles.xml \
131 Freshes/Pictures/10000000000002C5000003C02FC12A07C25F42DF.jpg \
132 Freshes/Pictures/10000000000006D7000003A637B7BBC50EDF4D24.jpg \
133 Freshes/Pictures/100000000000030F0000036F55A62FC34FCAB38E.jpg \
134 Freshes/Pictures/100000000000049100000359E7B1AC100BA62FBB.jpg \
135 Freshes/Pictures/10000000000001980000067FB46981E5FBCD5A53.jpg \
136 Freshes/Pictures/10000000000002D50000067FACCA26111F046EB5.jpg \
137 Freshes/Pictures/1000000000000B8B0000067F7C4C059ECC323C6F.jpg \
138 Freshes/Pictures/TablePreview1.svm \
139 Freshes/Thumbnails/thumbnail.png \
140 Freshes/content.xml \
141 Freshes/meta.xml \
142 Freshes/styles.xml \
143 Inspiration/content.xml \
144 Inspiration/META-INF/manifest.xml \
145 Inspiration/meta.xml \
146 Inspiration/styles.xml \
147 Inspiration/Thumbnails/thumbnail.png \
148 Lights/content.xml \
149 Lights/META-INF/manifest.xml \
150 Lights/meta.xml \
151 Lights/styles.xml \
152 Lights/Thumbnails/thumbnail.png \
153 Metropolis/content.xml \
154 Metropolis/META-INF/manifest.xml \
155 Metropolis/meta.xml \
156 Metropolis/Pictures/10000201000003AF000002126A94207C4902B60B.png \
157 Metropolis/Pictures/100021B200008D2E00004F60B312A649B9EEC188.svg \
158 Metropolis/styles.xml \
159 Metropolis/Thumbnails/thumbnail.png \
160 Midnightblue/content.xml \
161 Midnightblue/META-INF/manifest.xml \
162 Midnightblue/meta.xml \
163 Midnightblue/styles.xml \
164 Midnightblue/Thumbnails/thumbnail.png \
165 Nature_Illustration/content.xml \
166 Nature_Illustration/META-INF/manifest.xml \
167 Nature_Illustration/meta.xml \
168 Nature_Illustration/Pictures/10000000000004210000031931EA92AB7FB2FD6C.jpg \
169 Nature_Illustration/Pictures/100000000000042100000319892187DC121460D8.jpg \
170 Nature_Illustration/styles.xml \
171 Nature_Illustration/Thumbnails/thumbnail.png \
172 Pencil/content.xml \
173 Pencil/META-INF/manifest.xml \
174 Pencil/meta.xml \
175 Pencil/Pictures/1000020100000088000000870A26C51C993940C3.png \
176 Pencil/Pictures/100002010000037D0000001C2F14EFE8274AD9FC.png \
177 Pencil/Pictures/1000020100000402000000A2F7F509AE74DE6C69.png \
178 Pencil/styles.xml \
179 Pencil/Thumbnails/thumbnail.png \
180 Piano/content.xml \
181 Piano/META-INF/manifest.xml \
182 Piano/meta.xml \
183 Piano/Pictures/100000000000035400000120266623530F1969D0.png \
184 Piano/Pictures/100002010000033A0000006EDD62437E1CC42053.png \
185 Piano/styles.xml \
186 Piano/Thumbnails/thumbnail.png \
187 Portfolio/content.xml \
188 Portfolio/META-INF/manifest.xml \
189 Portfolio/meta.xml \
190 Portfolio/styles.xml \
191 Portfolio/Thumbnails/thumbnail.png \
192 Progress/content.xml \
193 Progress/META-INF/manifest.xml \
194 Progress/meta.xml \
195 Progress/styles.xml \
196 Progress/Thumbnails/thumbnail.png \
197 Sunset/content.xml \
198 Sunset/meta.xml \
199 Sunset/styles.xml \
200 Sunset/META-INF/manifest.xml \
201 Sunset/Thumbnails/thumbnail.png \
202 Vintage/content.xml \
203 Vintage/META-INF/manifest.xml \
204 Vintage/meta.xml \
205 Vintage/Pictures/10000000000000580000001F99D2A38C014B254B.png \
206 Vintage/Pictures/10000201000004B000000337490AE22881331C9B.png \
207 Vintage/Pictures/10000201000004B00000033776CA70A4BFE2196B.png \
208 Vintage/Pictures/10000201000004B0000003379D1127938561C230.png \
209 Vintage/Pictures/10000201000004B000000337D99A2303560BD59C.png \
210 Vintage/styles.xml \
211 Vintage/Thumbnails/thumbnail.png \
212 Vivid/content.xml \
213 Vivid/META-INF/manifest.xml \
214 Vivid/meta.xml \
215 Vivid/styles.xml \
216 Vivid/Thumbnails/thumbnail.png \
217 Yellow_Idea/content.xml \
218 Yellow_Idea/meta.xml \
219 Yellow_Idea/styles.xml \
220 Yellow_Idea/META-INF/manifest.xml \
221 Yellow_Idea/Pictures/1000020100000021000000087A16FD8FB901FE83.png \
222 Yellow_Idea/Pictures/100002010000001A0000001A609D6B9B144132F8.png \
223 Yellow_Idea/Pictures/10000201000000210000000835496FFA25AE5DB6.png \
224 Yellow_Idea/Pictures/100002010000001A0000001A21D7EADBA56038F4.png \
225 Yellow_Idea/Pictures/1000020100000008000000218CFF265B51917950.png \
226 Yellow_Idea/Pictures/100002010000004100000019BACEF928CB2A84CB.png \
227 Yellow_Idea/Pictures/100002010000004E000000192EFFFDEF12FDB2A8.png \
228 Yellow_Idea/Pictures/100002010000004D0000008BE35F31AC2914377D.png \
229 Yellow_Idea/Pictures/100002010000009E000000BD075AA48B79110C47.png \
230 Yellow_Idea/Thumbnails/thumbnail.png \
232 extras_PRESENTATIONS_MIMETYPEFILES := $(foreach atexts,$(extras_TEMPLATES_PRESENTATIONS),$(atexts)/mimetype)
235 $(call gb_CustomTarget_get_target,extras/source/templates/presnt) : \
236 $(foreach atexts,$(extras_TEMPLATES_PRESENTATIONS),$(call gb_CustomTarget_get_workdir,extras/source/templates/presnt)/$(atexts).otp)
238 $(call gb_CustomTarget_get_workdir,extras/source/templates/presnt)/%/mimetype : $(SRCDIR)/extras/source/templates/presnt/%/mimetype
239 $(call gb_Output_announce,templates/presnt/$*/mimetype,$(true),CPY,1)
240 $(call gb_Trace_StartRange,templates/presnt/$*/mimetype,CPY)
241 cp $< $@
242 $(call gb_Trace_EndRange,templates/presnt/$*/mimetype,CPY)
244 $(call gb_CustomTarget_get_workdir,extras/source/templates/presnt)/%.jpg : $(SRCDIR)/extras/source/templates/presnt/%.jpg
245 $(call gb_Output_announce,templates/presnt/$*.jpg,$(true),CPY,1)
246 $(call gb_Trace_StartRange,templates/presnt/$*.jpg,CPY)
247 cp $< $@
248 $(call gb_Trace_EndRange,templates/presnt/$*.jpg,CPY)
250 $(call gb_CustomTarget_get_workdir,extras/source/templates/presnt)/%.svg : $(SRCDIR)/extras/source/templates/presnt/%.svg
251 $(call gb_Output_announce,templates/presnt/$*.svg,$(true),CPY,1)
252 $(call gb_Trace_StartRange,templates/presnt/$*.svg,CPY)
253 cp $< $@
254 $(call gb_Trace_EndRange,templates/presnt/$*.svg,CPY)
256 $(call gb_CustomTarget_get_workdir,extras/source/templates/presnt)/%.png : $(SRCDIR)/extras/source/templates/presnt/%.png
257 $(call gb_Output_announce,templates/presnt/$*.png,$(true),CPY,1)
258 $(call gb_Trace_StartRange,templates/presnt/$*.png,CPY)
259 cp $< $@
260 $(call gb_Trace_EndRange,templates/presnt/$*.png,CPY)
262 $(call gb_CustomTarget_get_workdir,extras/source/templates/presnt)/%.svm : $(SRCDIR)/extras/source/templates/presnt/%.svm
263 $(call gb_Output_announce,templates/presnt/$*.svm,$(true),CPY,1)
264 $(call gb_Trace_StartRange,templates/presnt/$*.svm,CPY)
265 cp $< $@
266 $(call gb_Trace_EndRange,templates/presnt/$*.svm,CPY)
268 $(call gb_CustomTarget_get_workdir,extras/source/templates/presnt)/%.xml : $(SRCDIR)/extras/source/templates/presnt/%.xml \
269 | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
270 $(call gb_Output_announce,templates/presnt/$*.xml,$(true),XSL,1)
271 $(call gb_Trace_StartRange,templates/presnt/$*.xml,XSL)
272 $(call gb_ExternalExecutable_get_command,xsltproc) --nonet -o $@ $(SRCDIR)/extras/util/compact.xsl $<
273 $(call gb_Trace_EndRange,templates/presnt/$*.xml,XSL)
275 $(call gb_CustomTarget_get_workdir,extras/source/templates/presnt)/%.otp :
276 $(call gb_Output_announce,templates/presnt/$*.otp,$(true),ZIP,2)
277 $(call gb_Trace_StartRange,templates/presnt/$*.otp,ZIP)
278 $(call gb_Helper_abbreviate_dirs,\
279 cd $(EXTRAS_PRESENTATIONS_DIR) && \
280 zip -q0X --filesync --must-match $@ $(EXTRAS_PRESENTATIONS_MIMEFILES_FILTER) && \
281 zip -qrX --must-match $@ $(EXTRAS_PRESENTATIONS_XMLFILES_FILTER) \
283 $(call gb_Trace_EndRange,templates/presnt/$*.otp,ZIP)
285 define extras_Tplpresnt_make_file_deps
286 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : $(SRCDIR)/$(1)/$(2) \
287 | $(dir $(call gb_CustomTarget_get_workdir,$(1))/$(2)).dir
289 endef
291 define extras_Tplpresnt_make_zip_deps
292 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
293 $(addprefix $(call gb_CustomTarget_get_workdir,$(1))/,$(filter $(3)/%,$(extras_PRESENTATIONS_MIMETYPEFILES) $(extras_PRESENTATIONS_XMLFILES))) \
294 | $(dir $(call gb_CustomTarget_get_workdir,$(1))/$(2)).dir
296 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
297 EXTRAS_PRESENTATIONS_MIMEFILES_FILTER := $(foreach file,$(filter $(3)/%,$(extras_PRESENTATIONS_MIMETYPEFILES)),$(subst $(3)/,,$(file)))
298 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
299 EXTRAS_PRESENTATIONS_XMLFILES_FILTER := $(foreach file,$(filter $(3)/%,$(extras_PRESENTATIONS_XMLFILES)),$(subst $(3)/,,$(file)))
300 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
301 EXTRAS_PRESENTATIONS_DIR := $(call gb_CustomTarget_get_workdir,$(1))/$(3)
303 endef
305 $(eval $(foreach file,$(extras_PRESENTATIONS_MIMETYPEFILES) $(extras_PRESENTATIONS_XMLFILES),\
306 $(call extras_Tplpresnt_make_file_deps,extras/source/templates/presnt,$(file)) \
309 $(eval $(foreach atexts,$(extras_TEMPLATES_PRESENTATIONS),\
310 $(call extras_Tplpresnt_make_zip_deps,extras/source/templates/presnt,$(atexts).otp,$(atexts)) \
313 # vim: set noet sw=4 ts=4: