sc: filter: html: fix missing color scale conditional format
[LibreOffice.git] / extras / CustomTarget_tploffimisc.mk
bloba4582eb2686b860711cbb61ccff4e38e4e0d882d
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/offimisc))
12 extras_TEMPLATES_OFFIMISC := \
13 Businesscard-with-logo \
16 extras_OFFIMISC_XMLFILES := \
17 Businesscard-with-logo/content.xml \
18 Businesscard-with-logo/manifest.rdf \
19 Businesscard-with-logo/META-INF/manifest.xml \
20 Businesscard-with-logo/meta.xml \
21 Businesscard-with-logo/Pictures/10000201000001F4000000A0108F3F06.png \
22 Businesscard-with-logo/settings.xml \
23 Businesscard-with-logo/styles.xml \
24 Businesscard-with-logo/Thumbnails/thumbnail.png \
27 extras_OFFIMISC_MIMETYPEFILES := $(foreach atexts,$(extras_TEMPLATES_OFFIMISC),$(atexts)/mimetype)
30 $(call gb_CustomTarget_get_target,extras/source/templates/offimisc) : \
31 $(foreach atexts,$(extras_TEMPLATES_OFFIMISC),$(call gb_CustomTarget_get_workdir,extras/source/templates/offimisc)/$(atexts).ott)
33 $(call gb_CustomTarget_get_workdir,extras/source/templates/offimisc)/%/mimetype : $(SRCDIR)/extras/source/templates/offimisc/%/mimetype
34 $(call gb_Output_announce,templates/offimisc/$*/mimetype,$(true),CPY,1)
35 $(call gb_Trace_StartRange,templates/offimisc/$*/mimetype,CPY)
36 cp $< $@
37 $(call gb_Trace_EndRange,templates/offimisc/$*/mimetype,CPY)
39 $(call gb_CustomTarget_get_workdir,extras/source/templates/offimisc)/%.jpg : $(SRCDIR)/extras/source/templates/offimisc/%.jpg
40 $(call gb_Output_announce,templates/offimisc/$*.jpg,$(true),CPY,1)
41 $(call gb_Trace_StartRange,templates/offimisc/$*.jpg,CPY)
42 cp $< $@
43 $(call gb_Trace_EndRange,templates/offimisc/$*.jpg,CPY)
45 $(call gb_CustomTarget_get_workdir,extras/source/templates/offimisc)/%.png : $(SRCDIR)/extras/source/templates/offimisc/%.png
46 $(call gb_Output_announce,templates/offimisc/$*.png,$(true),CPY,1)
47 $(call gb_Trace_StartRange,templates/offimisc/$*.png,CPY)
48 cp $< $@
49 $(call gb_Trace_EndRange,templates/offimisc/$*.png,CPY)
51 $(call gb_CustomTarget_get_workdir,extras/source/templates/offimisc)/%.rdf : $(SRCDIR)/extras/source/templates/offimisc/%.rdf
52 $(call gb_Output_announce,templates/offimisc/$*.rdf,$(true),CPY,1)
53 $(call gb_Trace_StartRange,templates/offimisc/$*.rdf,CPY)
54 cp $< $@
55 $(call gb_Trace_EndRange,templates/offimisc/$*.rdf,CPY)
57 $(call gb_CustomTarget_get_workdir,extras/source/templates/offimisc)/%.svg : $(SRCDIR)/extras/source/templates/offimisc/%.svg
58 $(call gb_Output_announce,templates/offimisc/$*.svg,$(true),CPY,1)
59 $(call gb_Trace_StartRange,templates/offimisc/$*.svg,CPY)
60 cp $< $@
61 $(call gb_Trace_EndRange,templates/offimisc/$*.svg,CPY)
63 $(call gb_CustomTarget_get_workdir,extras/source/templates/offimisc)/%.svm : $(SRCDIR)/extras/source/templates/offimisc/%.svm
64 $(call gb_Output_announce,templates/offimisc/$*.svm,$(true),CPY,1)
65 $(call gb_Trace_StartRange,templates/offimisc/$*.svm,CPY)
66 cp $< $@
67 $(call gb_Trace_EndRange,templates/offimisc/$*.svm,CPY)
69 $(call gb_CustomTarget_get_workdir,extras/source/templates/offimisc)/%.xml : $(SRCDIR)/extras/source/templates/offimisc/%.xml \
70 | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
71 $(call gb_Output_announce,templates/offimisc/$*.xml,$(true),XSL,1)
72 $(call gb_Trace_StartRange,templates/offimisc/$*.xml,XSL)
73 $(call gb_ExternalExecutable_get_command,xsltproc) --nonet -o $@ $(SRCDIR)/extras/util/compact.xsl $<
74 $(call gb_Trace_EndRange,templates/offimisc/$*.xml,XSL)
76 $(call gb_CustomTarget_get_workdir,extras/source/templates/offimisc)/%.ott :
77 $(call gb_Output_announce,templates/offimisc/$*.ott,$(true),ZIP,2)
78 $(call gb_Trace_StartRange,templates/offimisc/$*.ott,ZIP)
79 $(call gb_Helper_abbreviate_dirs,\
80 cd $(EXTRAS_OFFIMISC_DIR) && \
81 zip -q0X --filesync --must-match $@ $(EXTRAS_OFFIMISC_MIMEFILES_FILTER) && \
82 zip -qrX --must-match $@ $(EXTRAS_OFFIMISC_XMLFILES_FILTER) \
84 $(call gb_Trace_EndRange,templates/offimisc/$*.ott,ZIP)
86 define extras_Tploffimisc_make_file_deps
87 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : $(SRCDIR)/$(1)/$(2) \
88 | $(dir $(call gb_CustomTarget_get_workdir,$(1))/$(2)).dir
90 endef
92 define extras_Tploffimisc_make_zip_deps
93 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
94 $(addprefix $(call gb_CustomTarget_get_workdir,$(1))/,$(filter $(3)/%,$(extras_OFFIMISC_MIMETYPEFILES) $(extras_OFFIMISC_XMLFILES))) \
95 | $(dir $(call gb_CustomTarget_get_workdir,$(1))/$(2)).dir
97 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
98 EXTRAS_OFFIMISC_MIMEFILES_FILTER := $(foreach file,$(filter $(3)/%,$(extras_OFFIMISC_MIMETYPEFILES)),$(subst $(3)/,,$(file)))
99 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
100 EXTRAS_OFFIMISC_XMLFILES_FILTER := $(foreach file,$(filter $(3)/%,$(extras_OFFIMISC_XMLFILES)),$(subst $(3)/,,$(file)))
101 $(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
102 EXTRAS_OFFIMISC_DIR := $(call gb_CustomTarget_get_workdir,$(1))/$(3)
104 endef
106 $(eval $(foreach file,$(extras_OFFIMISC_MIMETYPEFILES) $(extras_OFFIMISC_XMLFILES),\
107 $(call extras_Tploffimisc_make_file_deps,extras/source/templates/offimisc,$(file)) \
110 $(eval $(foreach atexts,$(extras_TEMPLATES_OFFIMISC),\
111 $(call extras_Tploffimisc_make_zip_deps,extras/source/templates/offimisc,$(atexts).ott,$(atexts)) \
114 # vim: set noet sw=4 ts=4: