# -*- 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/. #
# difficult to determine source dep for this one...
$(gb_Gallery_workdir)/%.ulf : \
$(call gb_Executable_get_runtime_dependencies,ulfex)
$(call gb_CustomTarget_ulfex__command,$@,$(GALLERY_ULFFILE),\
$(foreach lang,$(gb_TRANS_LANGS),\
$(gb_POLOCATION)/$(lang)/extras/source/gallery/share.po))
# the theme package
gb_Gallery_get_packagename = Gallery/$(1) # the files package
gb_Gallery_get_files_packagename = Gallery/Files/$(1)
# Create a gallery. # # basedir less one directory will be stripped from paths of the files when they are # inserted into the gallery. # # gb_Gallery_Gallery gallery basedir name define gb_Gallery_Gallery
$(call gb_Gallery__Gallery_impl,$(1),$(call gb_Gallery_get_packagename,$(1)),$(2),$(3))
# setup the files package - we install all of these too
$(call gb_Package_Package_internal,$(call gb_Gallery_get_files_packagename,$(1)),$(SRCDIR)/$(2))
$(call gb_Gallery__get_final_target,$(1)) : $(call gb_Package_get_target,$(call gb_Gallery_get_files_packagename,$(1)))
$(call gb_Gallery_get_clean_target,$(1)) : $(call gb_Package_get_clean_target,$(callgb_Gallery_get_files_packagename,$(1)))
# TODO: we process the same ulf file for every gallery. That does not # make sense. # # gb_Gallery__Gallery_impl gallery package basedir name define gb_Gallery__Gallery_impl
$(call gb_Package_Package_internal,$(2),$(gb_Gallery_workdir)/$(1))
$(call gb_Package_add_file,$(2),$(gb_Gallery_INSTDIR)/$(1).sdg,$(1).sdg)
$(call gb_Package_add_file,$(2),$(gb_Gallery_INSTDIR)/$(1).sdv,$(1).sdv)
$(call gb_Package_add_file,$(2),$(gb_Gallery_INSTDIR)/$(1).thm,$(1).thm)
$(call gb_Package_add_file,$(2),$(gb_Gallery_INSTDIR)/$(1).str,$(1).str)
# order-only, the Gallery-Target also makes those files
$(addprefix $(gb_Gallery_workdir)/$(1)/$(1),.sdg .sdv .thm): | $(call gb_Gallery_get_target,$(1))
$(call gb_Gallery__get_final_target,$(1)) : $(call gb_Package_get_target,$(2))
# Add a file to the gallery. # # The file is given by path relative to $(SRCDIR). # # gb_Gallery_add_file gallery file define gb_Gallery_add_file
$(call gb_Gallery_get_target,$(1)) : $(SRCDIR)/$(3)
$(call gb_Gallery_get_target,$(1)) : GALLERY_FILES += $(call gb_Helper_make_url,$(SRCDIR)/$(3))
$(call gb_Package_add_file,$(call gb_Gallery_get_files_packagename,$(1)),$(2)/$(notdir $(3)),$(notdir $(3)))
endef
# Add several files to the gallery at once. # # The files are given by path relative to $(SRCDIR). # # gb_Gallery_add_files gallery file(s) define gb_Gallery_add_files
$(foreach fname,$(3),$(call gb_Gallery_add_file,$(1),$(2),$(fname)))
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.