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
/wizard
))
12 # mimetype, content.xml, settings.xml, styles.xml, META-INF/manifest.xml and
13 # Thumbnails/thumbnail.png files are automatically added for each template
14 # list of meta.xml files (one per template) + other files (manifest.rdf, pictures...)
15 extras_WIZARD_XMLFILES
:= \
16 agenda
/10grey
/meta.xml \
17 agenda
/1simple
/meta.xml \
18 agenda
/2elegant
/meta.xml \
19 agenda
/3modern
/meta.xml \
20 agenda
/4classic
/meta.xml \
21 agenda
/5blue
/meta.xml \
22 agenda
/6orange
/meta.xml \
23 agenda
/7red
/meta.xml \
24 agenda
/8green
/meta.xml \
25 agenda
/9colorful
/meta.xml \
26 agenda
/aw-10grey
/meta.xml \
27 agenda
/aw-1simple
/meta.xml \
28 agenda
/aw-2elegant
/meta.xml \
29 agenda
/aw-3modern
/meta.xml \
30 agenda
/aw-4classic
/meta.xml \
31 agenda
/aw-5blue
/meta.xml \
32 agenda
/aw-6orange
/meta.xml \
33 agenda
/aw-7red
/meta.xml \
34 agenda
/aw-8green
/meta.xml \
35 agenda
/aw-9colorful
/meta.xml \
36 agenda
/10grey
/manifest.rdf \
37 agenda
/1simple
/manifest.rdf \
38 agenda
/2elegant
/manifest.rdf \
39 agenda
/3modern
/manifest.rdf \
40 agenda
/4classic
/manifest.rdf \
41 agenda
/5blue
/manifest.rdf \
42 agenda
/6orange
/manifest.rdf \
43 agenda
/7red
/manifest.rdf \
44 agenda
/8green
/manifest.rdf \
45 agenda
/9colorful
/manifest.rdf \
46 agenda
/aw-10grey
/manifest.rdf \
47 agenda
/aw-1simple
/manifest.rdf \
48 agenda
/aw-2elegant
/manifest.rdf \
49 agenda
/aw-3modern
/manifest.rdf \
50 agenda
/aw-4classic
/manifest.rdf \
51 agenda
/aw-5blue
/manifest.rdf \
52 agenda
/aw-6orange
/manifest.rdf \
53 agenda
/aw-7red
/manifest.rdf \
54 agenda
/aw-8green
/manifest.rdf \
55 agenda
/aw-9colorful
/manifest.rdf \
56 agenda
/2elegant
/Pictures
/1000000000000280000000052876A81A.gif \
57 agenda
/2elegant
/Pictures
/100002000000008F0000000A83659D51.gif \
58 agenda
/aw-2elegant
/Pictures
/1000000000000280000000052876A81A.gif \
59 agenda
/aw-2elegant
/Pictures
/100002000000008F0000000A83659D51.gif \
60 fax
/bus-classic_f
/meta.xml \
61 fax
/bus-classic-pri_f
/meta.xml \
62 fax
/bus-modern_f
/meta.xml \
63 fax
/bus-modern-pri_f
/meta.xml \
64 fax
/pri-bottle_f
/meta.xml \
65 fax
/pri-fax_f
/meta.xml \
66 fax
/pri-lines_f
/meta.xml \
67 fax
/pri-marine_f
/meta.xml \
68 fax
/bus-classic_f
/manifest.rdf \
69 fax
/bus-classic-pri_f
/manifest.rdf \
70 fax
/bus-modern_f
/manifest.rdf \
71 fax
/bus-modern-pri_f
/manifest.rdf \
72 fax
/bus-classic_f
/Pictures
/200000520000271100001F73A977C564.wmf \
73 fax
/bus-modern_f
/Pictures
/2000004E0000271100001F73772F7F48.wmf \
74 fax
/pri-bottle_f
/Pictures
/200002EB000022DA000024E1F891208C.wmf \
75 fax
/pri-fax_f
/Pictures
/2000032600002711000026A54A905481.wmf \
76 fax
/pri-marine_f
/Pictures
/2000004B0000227F0000227886F3FC0F.wmf \
77 letter
/bus-elegant_l
/meta.xml \
78 letter
/bus-modern_l
/meta.xml \
79 letter
/bus-office_l
/meta.xml \
80 letter
/off-elegant_l
/meta.xml \
81 letter
/off-modern_l
/meta.xml \
82 letter
/off-office_l
/meta.xml \
83 letter
/pri-bottle_l
/meta.xml \
84 letter
/pri-mail_l
/meta.xml \
85 letter
/pri-marine_l
/meta.xml \
86 letter
/pri-redline_l
/meta.xml \
87 letter
/bus-elegant_l
/manifest.rdf \
88 letter
/bus-modern_l
/manifest.rdf \
89 letter
/bus-office_l
/manifest.rdf \
90 letter
/off-elegant_l
/manifest.rdf \
91 letter
/off-modern_l
/manifest.rdf \
92 letter
/off-office_l
/manifest.rdf \
93 letter
/bus-elegant_l
/Pictures
/10000000000001B8000000824B7EA208.png \
94 letter
/bus-modern_l
/Pictures
/10000000000001B8000000824B7EA208.png \
95 letter
/bus-office_l
/Pictures
/10000000000001B8000000824B7EA208.png \
96 letter
/off-elegant_l
/Pictures
/2000000D00000434000006FD6841386B.svm \
97 letter
/off-modern_l
/Pictures
/10000000000000110000001142D1547F.png \
98 letter
/pri-bottle_l
/Pictures
/200002EB000022DA000024E1F891208C.wmf \
99 letter
/pri-mail_l
/Pictures
/200000430000271100001205CAE80946.wmf \
100 letter
/pri-marine_l
/Pictures
/2000004B0000227F0000227886F3FC0F.wmf \
101 report
/cnt-01
/meta.xml \
102 report
/cnt-011
/meta.xml \
103 report
/cnt-012
/meta.xml \
104 report
/cnt-02
/meta.xml \
105 report
/cnt-021
/meta.xml \
106 report
/cnt-022
/meta.xml \
107 report
/cnt-03
/meta.xml \
108 report
/cnt-031
/meta.xml \
109 report
/cnt-032
/meta.xml \
110 report
/cnt-04
/meta.xml \
111 report
/cnt-041
/meta.xml \
112 report
/cnt-042
/meta.xml \
113 report
/cnt-05
/meta.xml \
114 report
/cnt-051
/meta.xml \
115 report
/cnt-052
/meta.xml \
116 report
/cnt-06
/meta.xml \
117 report
/cnt-061
/meta.xml \
118 report
/cnt-062
/meta.xml \
119 report
/cnt-default
/meta.xml \
120 report
/stl-01
/meta.xml \
121 report
/stl-02
/meta.xml \
122 report
/stl-03
/meta.xml \
123 report
/stl-04
/meta.xml \
124 report
/stl-05
/meta.xml \
125 report
/stl-06
/meta.xml \
126 report
/stl-07
/meta.xml \
127 report
/stl-08
/meta.xml \
128 report
/stl-09
/meta.xml \
129 report
/stl-default
/meta.xml \
130 report
/stl-01
/manifest.rdf \
131 report
/stl-02
/manifest.rdf \
132 report
/stl-03
/manifest.rdf \
133 report
/stl-04
/manifest.rdf \
134 report
/stl-05
/manifest.rdf \
135 report
/stl-06
/manifest.rdf \
136 report
/stl-07
/manifest.rdf \
137 report
/stl-08
/manifest.rdf \
138 report
/stl-09
/manifest.rdf \
139 report
/stl-default
/manifest.rdf \
140 report
/stl-01
/Pictures
/100002000000001400000014E87B6AC5.gif \
141 report
/stl-01
/Pictures
/2000018100001CB100002711BFED37A8.wmf \
142 report
/stl-02
/Pictures
/2000009E0000380100002657BA019D86.wmf \
143 report
/stl-03
/Pictures
/2000024900002711000021F4DCB2DF4A.wmf \
144 report
/stl-04
/Pictures
/10000000000000400000004077CDC8F9.png \
145 report
/stl-04
/Pictures
/10000000000001C6000000E44DCA6C94.jpg \
146 report
/stl-05
/Pictures
/2000036D000027110000145EB7E93049.wmf \
147 report
/stl-06
/Pictures
/100000000000005A000000268DE98CCE.gif \
148 report
/stl-06
/Pictures
/100000000000021B000001E8BE936AB6.gif \
149 report
/stl-08
/Pictures
/100000000000005E0000005E97FB9EF6.jpg \
150 report
/stl-09
/Pictures
/10000000000000050000004D32652675.jpg \
151 report
/stl-09
/Pictures
/100002000000001400000014E87B6AC5.gif \
152 report
/stl-09
/Pictures
/2000025100001D92000017719EB70CFB.wmf \
153 styles
/black_white
/meta.xml \
154 styles
/blackberry
/meta.xml \
155 styles
/default
/meta.xml \
156 styles
/diner
/meta.xml \
157 styles
/fall
/meta.xml \
158 styles
/glacier
/meta.xml \
159 styles
/green_grapes
/meta.xml \
160 styles
/jeans
/meta.xml \
161 styles
/marine
/meta.xml \
162 styles
/millennium
/meta.xml \
163 styles
/nature
/meta.xml \
164 styles
/neon
/meta.xml \
165 styles
/night
/meta.xml \
166 styles
/nostalgic
/meta.xml \
167 styles
/pastell
/meta.xml \
168 styles
/pool
/meta.xml \
169 styles
/pumpkin
/meta.xml \
170 styles
/xos
/meta.xml \
172 # param: style-base (e.g. agenda/10grey)
173 extras_WIZARD_XMLFILES_RELATIVE
= $(subst $(1)/,,$(filter $(1)/%,$(extras_WIZARD_XMLFILES
)))
176 # secondexpansion since the patterns not just cover a filename portion, but also include a
177 # directory portion withdifferent number of elements
178 # copy regular files (mimetype, *.jpg, *.png, *.rdf, *.svg, *.svm, …)
179 $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/% : $(SRCDIR
)/extras
/source
/templates
/wizard
/% \
180 |
$$(dir $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*).
dir
181 $(call gb_Output_announce
,templates
/wizard
/$*,$(true
),CPY
,1)
182 $(call gb_Trace_StartRange
,templates
/wizard
/$*,CPY
)
184 $(call gb_Trace_EndRange
,templates
/wizard
/$*,CPY
)
186 # test and copy xml files
187 $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/%.xml
: $(SRCDIR
)/extras
/source
/templates
/wizard
/%.xml \
188 |
$(call gb_ExternalExecutable_get_dependencies
,xsltproc
) \
189 $$(dir $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*.xml
).
dir
190 $(call gb_Output_announce
,templates
/wizard
/$*.xml
,$(true
),XSL
,1)
191 $(call gb_Trace_StartRange
,templates
/wizard
/$*.xml
,XSL
)
192 $(call gb_ExternalExecutable_get_command
,xsltproc
) --nonet
-o
$@
$(SRCDIR
)/extras
/util
/compact.xsl
$<
193 $(call gb_Trace_EndRange
,templates
/wizard
/$*.xml
,XSL
)
196 $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/%.ott
: \
197 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
198 mimetype
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) ) \
199 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
200 content.xml
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) ) \
201 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
202 settings.xml
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) ) \
203 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
204 styles.xml
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) ) \
205 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
206 META-INF
/manifest.xml
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) ) \
207 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
208 Thumbnails
/thumbnail.png
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) )
209 $(call gb_Output_announce
,templates
/wizard
/$*.ott
,$(true
),ZIP
,2)
210 $(call gb_Trace_StartRange
,templates
/wizard
/$*.ott
,ZIP
)
211 $(call gb_Helper_abbreviate_dirs
,\
213 zip
-q0X
--filesync
--must-match
$@ mimetype
&& \
214 zip
-qrX
--must-match
$@ content.xml settings.xml styles.xml META-INF
/manifest.xml Thumbnails
/thumbnail.png
&& \
215 zip
-qrX
--must-match
$@
$(call extras_WIZARD_XMLFILES_RELATIVE
,$*) \
217 $(call gb_Trace_EndRange
,templates
/wizard
/$*.ott
,ZIP
)
220 $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/%.ots
: \
221 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
222 mimetype
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) ) \
223 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
224 content.xml
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) ) \
225 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
226 settings.xml
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) ) \
227 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
228 styles.xml
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) ) \
229 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
230 META-INF
/manifest.xml
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) ) \
231 $$(addprefix $(call gb_CustomTarget_get_workdir
,extras
/source
/templates
/wizard
)/$$*/,\
232 Thumbnails
/thumbnail.png
$$(call extras_WIZARD_XMLFILES_RELATIVE
,$$*) )
233 $(call gb_Output_announce
,templates
/wizard
/$*.ots
,$(true
),ZIP
,2)
234 $(call gb_Trace_StartRange
,templates
/wizard
/$*.ots
,ZIP
)
235 $(call gb_Helper_abbreviate_dirs
,\
237 zip
-q0X
--filesync
--must-match
$@ mimetype
&& \
238 zip
-qrX
--must-match
$@ content.xml settings.xml styles.xml META-INF
/manifest.xml Thumbnails
/thumbnail.png
&& \
239 zip
-qrX
--must-match
$@
$(call extras_WIZARD_XMLFILES_RELATIVE
,$*) \
241 $(call gb_Trace_EndRange
,templates
/wizard
/$*.ots
,ZIP
)
243 # vim: set noet sw=4 ts=4: