2018-08-09 10:33:16 -05:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
|
#
|
|
|
|
# This file is part of the LibreOffice project.
|
|
|
|
#
|
|
|
|
# This Source Code Form is subject to the terms of the Mozilla Public
|
|
|
|
# License, v. 2.0. If a copy of the MPL was not distributed with this
|
|
|
|
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
|
|
|
|
#
|
|
|
|
|
|
|
|
$(eval $(call gb_CustomTarget_CustomTarget,extras/source/templates/personal))
|
|
|
|
|
|
|
|
extras_TEMPLATES_PERSONAL := \
|
|
|
|
CV \
|
|
|
|
Resume1page \
|
|
|
|
|
|
|
|
|
|
|
|
extras_PERSONAL_XMLFILES := \
|
|
|
|
CV/content.xml \
|
|
|
|
CV/manifest.rdf \
|
|
|
|
CV/META-INF/manifest.xml \
|
|
|
|
CV/meta.xml \
|
|
|
|
CV/styles.xml \
|
|
|
|
CV/Thumbnails/thumbnail.png \
|
|
|
|
Resume1page/content.xml \
|
|
|
|
Resume1page/manifest.rdf \
|
|
|
|
Resume1page/META-INF/manifest.xml \
|
|
|
|
Resume1page/meta.xml \
|
|
|
|
Resume1page/styles.xml \
|
|
|
|
Resume1page/Thumbnails/thumbnail.png \
|
|
|
|
|
|
|
|
|
2019-05-01 13:48:46 -05:00
|
|
|
extras_PERSONAL_MIMETYPEFILES := $(foreach atexts,$(extras_TEMPLATES_PERSONAL),$(atexts)/mimetype)
|
2018-08-09 10:33:16 -05:00
|
|
|
|
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_target,extras/source/templates/personal) : \
|
|
|
|
$(foreach atexts,$(extras_TEMPLATES_PERSONAL),$(call gb_CustomTarget_get_workdir,extras/source/templates/personal)/$(atexts).ott)
|
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_workdir,extras/source/templates/personal)/%/mimetype : $(SRCDIR)/extras/source/templates/personal/%/mimetype
|
2019-05-01 13:48:46 -05:00
|
|
|
$(call gb_Output_announce,templates/personal/$*/mimetype,$(true),CPY,1)
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_StartRange,templates/personal/$*/mimetype,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
cp $< $@
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_EndRange,templates/personal/$*/mimetype,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_workdir,extras/source/templates/personal)/%.jpg : $(SRCDIR)/extras/source/templates/personal/%.jpg
|
2019-05-01 13:48:46 -05:00
|
|
|
$(call gb_Output_announce,templates/personal/$*.jpg,$(true),CPY,1)
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_StartRange,templates/personal/$*.jpg,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
cp $< $@
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_EndRange,templates/personal/$*.jpg,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_workdir,extras/source/templates/personal)/%.png : $(SRCDIR)/extras/source/templates/personal/%.png
|
2019-05-01 13:48:46 -05:00
|
|
|
$(call gb_Output_announce,templates/personal/$*.png,$(true),CPY,1)
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_StartRange,templates/personal/$*.png,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
cp $< $@
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_EndRange,templates/personal/$*.png,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_workdir,extras/source/templates/personal)/%.rdf : $(SRCDIR)/extras/source/templates/personal/%.rdf
|
2019-05-01 13:48:46 -05:00
|
|
|
$(call gb_Output_announce,templates/personal/$*.rdf,$(true),CPY,1)
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_StartRange,templates/personal/$*.rdf,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
cp $< $@
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_EndRange,templates/personal/$*.rdf,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_workdir,extras/source/templates/personal)/%.svg : $(SRCDIR)/extras/source/templates/personal/%.svg
|
2019-05-01 13:48:46 -05:00
|
|
|
$(call gb_Output_announce,templates/personal/$*.svg,$(true),CPY,1)
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_StartRange,templates/personal/$*.svg,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
cp $< $@
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_EndRange,templates/personal/$*.svg,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_workdir,extras/source/templates/personal)/%.svm : $(SRCDIR)/extras/source/templates/personal/%.svm
|
2019-05-01 13:48:46 -05:00
|
|
|
$(call gb_Output_announce,templates/personal/$*.svm,$(true),CPY,1)
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_StartRange,templates/personal/$*.svm,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
cp $< $@
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_EndRange,templates/personal/$*.svm,CPY)
|
2018-08-09 10:33:16 -05:00
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_workdir,extras/source/templates/personal)/%.xml : $(SRCDIR)/extras/source/templates/personal/%.xml \
|
|
|
|
| $(call gb_ExternalExecutable_get_dependencies,xsltproc)
|
2019-05-01 13:48:46 -05:00
|
|
|
$(call gb_Output_announce,templates/personal/$*.xml,$(true),XSL,1)
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_StartRange,templates/personal/$*.xml,XSL)
|
2018-08-09 10:33:16 -05:00
|
|
|
$(call gb_ExternalExecutable_get_command,xsltproc) --nonet -o $@ $(SRCDIR)/extras/util/compact.xsl $<
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_EndRange,templates/personal/$*.xml,XSL)
|
2018-08-09 10:33:16 -05:00
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_workdir,extras/source/templates/personal)/%.ott :
|
2019-05-01 13:48:46 -05:00
|
|
|
$(call gb_Output_announce,templates/personal/$*.ott,$(true),ZIP,2)
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_StartRange,templates/personal/$*.ott,ZIP)
|
2018-08-09 10:33:16 -05:00
|
|
|
$(call gb_Helper_abbreviate_dirs,\
|
|
|
|
cd $(EXTRAS_PERSONAL_DIR) && \
|
2019-05-01 13:48:46 -05:00
|
|
|
zip -q0X --filesync --must-match $@ $(EXTRAS_PERSONAL_MIMEFILES_FILTER) && \
|
|
|
|
zip -qrX --must-match $@ $(EXTRAS_PERSONAL_XMLFILES_FILTER) \
|
2018-08-09 10:33:16 -05:00
|
|
|
)
|
2020-02-10 03:31:26 -06:00
|
|
|
$(call gb_Trace_EndRange,templates/personal/$*.ott,ZIP)
|
2018-08-09 10:33:16 -05:00
|
|
|
|
|
|
|
define extras_Tplpersonal_make_file_deps
|
|
|
|
$(call gb_CustomTarget_get_workdir,$(1))/$(2) : $(SRCDIR)/$(1)/$(2) \
|
|
|
|
| $(dir $(call gb_CustomTarget_get_workdir,$(1))/$(2)).dir
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
|
|
|
define extras_Tplpersonal_make_zip_deps
|
|
|
|
$(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
|
2019-05-01 13:48:46 -05:00
|
|
|
$(addprefix $(call gb_CustomTarget_get_workdir,$(1))/,$(filter $(3)/%,$(extras_PERSONAL_MIMETYPEFILES) $(extras_PERSONAL_XMLFILES))) \
|
2018-08-09 10:33:16 -05:00
|
|
|
| $(dir $(call gb_CustomTarget_get_workdir,$(1))/$(2)).dir
|
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
|
2019-05-01 13:48:46 -05:00
|
|
|
EXTRAS_PERSONAL_MIMEFILES_FILTER := $(foreach file,$(filter $(3)/%,$(extras_PERSONAL_MIMETYPEFILES)),$(subst $(3)/,,$(file)))
|
|
|
|
$(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
|
|
|
|
EXTRAS_PERSONAL_XMLFILES_FILTER := $(foreach file,$(filter $(3)/%,$(extras_PERSONAL_XMLFILES)),$(subst $(3)/,,$(file)))
|
2018-08-09 10:33:16 -05:00
|
|
|
$(call gb_CustomTarget_get_workdir,$(1))/$(2) : \
|
|
|
|
EXTRAS_PERSONAL_DIR := $(call gb_CustomTarget_get_workdir,$(1))/$(3)
|
|
|
|
|
|
|
|
endef
|
|
|
|
|
2019-05-01 13:48:46 -05:00
|
|
|
$(eval $(foreach file,$(extras_PERSONAL_MIMETYPEFILES) $(extras_PERSONAL_XMLFILES),\
|
|
|
|
$(call extras_Tplpersonal_make_file_deps,extras/source/templates/personal,$(file)) \
|
2018-08-09 10:33:16 -05:00
|
|
|
))
|
|
|
|
|
|
|
|
$(eval $(foreach atexts,$(extras_TEMPLATES_PERSONAL),\
|
|
|
|
$(call extras_Tplpersonal_make_zip_deps,extras/source/templates/personal,$(atexts).ott,$(atexts)) \
|
|
|
|
))
|
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|