sc: filter: html: fix missing color scale conditional format
[LibreOffice.git] / extras / CustomTarget_tpl_styles.mk
blob60897f38d8015085904feb4104128b06a85155f8
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/styles))
12 extras_TEMPLATES_STYLES := \
13 Default \
14 Modern \
15 Simple \
18 extras_STYLES_XMLFILES := \
19 Default/META-INF/manifest.xml \
20 Default/meta.xml \
21 Default/styles.xml \
22 Default/Thumbnails/thumbnail.png \
23 Modern/META-INF/manifest.xml \
24 Modern/meta.xml \
25 Modern/styles.xml \
26 Modern/Thumbnails/thumbnail.png \
27 Simple/META-INF/manifest.xml \
28 Simple/meta.xml \
29 Simple/styles.xml \
30 Simple/Thumbnails/thumbnail.png \
33 extras_STYLES_MIMETYPEFILES := $(foreach atexts,$(extras_TEMPLATES_STYLES),$(atexts)/mimetype)
36 $(call gb_CustomTarget_get_target,extras/source/templates/styles) : \
37 $(foreach atexts,$(extras_TEMPLATES_STYLES),$(call gb_CustomTarget_get_workdir,extras/source/templates/styles)/$(atexts).ott)
39 $(call gb_CustomTarget_get_workdir,extras/source/templates/styles)/%/mimetype : $(SRCDIR)/extras/source/templates/styles/%/mimetype
40 $(call gb_Output_announce,templates/styles/$*/mimetype,$(true),CPY,1)
41 $(call gb_Trace_StartRange,templates/styles/$*/mimetype,CPY)
42 cp $< $@
43 $(call gb_Trace_EndRange,templates/styles/$*/mimetype,CPY)
45 $(call gb_CustomTarget_get_workdir,extras/source/templates/styles)/%.jpg : $(SRCDIR)/extras/source/templates/styles/%.jpg
46 $(call gb_Output_announce,templates/styles/$*.jpg,$(true),CPY,1)
47 $(call gb_Trace_StartRange,templates/styles/$*.jpg,CPY)
48 cp $< $@
49 $(call gb_Trace_EndRange,templates/styles/$*.jpg,CPY)
51 $(call gb_CustomTarget_get_workdir,extras/source/templates/styles)/%.png : $(SRCDIR)/extras/source/templates/styles/%.png
52 $(call gb_Output_announce,templates/styles/$*.png,$(true),CPY,1)
53 $(call gb_Trace_StartRange,templates/styles/$*.png,CPY)
54 cp $< $@
55 $(call gb_Trace_EndRange,templates/styles/$*.png,CPY)
57 $(call gb_CustomTarget_get_workdir,extras/source/templates/styles)/%.rdf : $(SRCDIR)/extras/source/templates/styles/%.rdf
58 $(call gb_Output_announce,templates/styles/$*.rdf,$(true),CPY,1)
59 $(call gb_Trace_StartRange,templates/styles/$*.rdf,CPY)
60 cp $< $@
61 $(call gb_Trace_EndRange,templates/styles/$*.rdf,CPY)
63 $(call gb_CustomTarget_get_workdir,extras/source/templates/styles)/%.svg : $(SRCDIR)/extras/source/templates/styles/%.svg
64 $(call gb_Output_announce,templates/styles/$*.svg,$(true),CPY,1)
65 $(call gb_Trace_StartRange,templates/styles/$*.svg,CPY)
66 cp $< $@
67 $(call gb_Trace_EndRange,templates/styles/$*.svg,CPY)
69 $(call gb_CustomTarget_get_workdir,extras/source/templates/styles)/%.svm : $(SRCDIR)/extras/source/templates/styles/%.svm
70 $(call gb_Output_announce,templates/styles/$*.svm,$(true),CPY,1)
71 $(call gb_Trace_StartRange,templates/styles/$*.svm,CPY)
72 cp $< $@
73 $(call gb_Trace_EndRange,templates/styles/$*.svm,CPY)
75 $(call gb_CustomTarget_get_workdir,extras/source/templates/styles)/%.xml : $(SRCDIR)/extras/source/templates/styles/%.xml \
76 | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
77 $(call gb_Output_announce,templates/styles/$*.xml,$(true),XSL,1)
78 $(call gb_Trace_StartRange,templates/styles/$*.xml,XSL)
79 $(call gb_ExternalExecutable_get_command,xsltproc) --nonet -o $@ $(SRCDIR)/extras/util/compact.xsl $<
80 $(call gb_Trace_EndRange,templates/styles/$*.xml,XSL)
82 $(call gb_CustomTarget_get_workdir,extras/source/templates/styles)/%.ott :
83 $(call gb_Output_announce,templates/styles/$*.ott,$(true),ZIP,2)
84 $(call gb_Trace_StartRange,templates/styles/$*.ott,ZIP)
85 $(call gb_Helper_abbreviate_dirs,\
86 cd $(EXTRAS_STYLES_DIR) && \
87 zip -q0X --filesync --must-match $@ $(EXTRAS_STYLES_MIMEFILES_FILTER) && \
88 zip -qrX --must-match $@ $(EXTRAS_STYLES_XMLFILES_FILTER) \
90 $(call gb_Trace_EndRange,templates/styles/$*.ott,ZIP)
92 define extras_Tplstyles_make_file_deps
93 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : $(SRCDIR)/$(1)/$(2) \
94 | $(dir $(call gb_CustomTarget_get_workdir,$(1))/$(2)).dir
96 endef
98 define extras_Tplstyles_make_zip_deps
99 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
100 $(addprefix $(call gb_CustomTarget_get_workdir,$(1))/,$(filter $(3)/%,$(extras_STYLES_MIMETYPEFILES) $(extras_STYLES_XMLFILES))) \
101 | $(dir $(call gb_CustomTarget_get_workdir,$(1))/$(2)).dir
103 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
104 EXTRAS_STYLES_MIMEFILES_FILTER := $(foreach file,$(filter $(3)/%,$(extras_STYLES_MIMETYPEFILES)),$(subst $(3)/,,$(file)))
105 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
106 EXTRAS_STYLES_XMLFILES_FILTER := $(foreach file,$(filter $(3)/%,$(extras_STYLES_XMLFILES)),$(subst $(3)/,,$(file)))
107 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
108 EXTRAS_STYLES_DIR := $(call gb_CustomTarget_get_workdir,$(1))/$(3)
110 endef
112 $(eval $(foreach file,$(extras_STYLES_MIMETYPEFILES) $(extras_STYLES_XMLFILES),\
113 $(call extras_Tplstyles_make_file_deps,extras/source/templates/styles,$(file)) \
116 $(eval $(foreach atexts,$(extras_TEMPLATES_STYLES),\
117 $(call extras_Tplstyles_make_zip_deps,extras/source/templates/styles,$(atexts).ott,$(atexts)) \
120 # vim: set noet sw=4 ts=4: