update credits
[LibreOffice.git] / officecfg / CustomTarget_registry.mk
bloba482585d0323191dd97d12b9f90dfe559265cee5
1 # -*- Mode: makefile; 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,officecfg/registry))
12 $(call gb_CustomTarget_get_target,officecfg/registry) : \
13 $(foreach i,officecfg_qa_allheaders $(officecfg_XCSFILES),\
14 $(call gb_CustomTarget_get_workdir,officecfg/registry)/officecfg/$(i).hxx)
16 # auto generated header file for unit test qa/cppheader.cxx
17 $(call gb_CustomTarget_get_workdir,officecfg/registry)/officecfg/officecfg_qa_allheaders.hxx: \
18 $(SRCDIR)/officecfg/files.mk
19 $(call gb_Output_announce,officecfg_qa_allheaders.hxx,$(true),CAT,1)
20 mkdir -p $(dir $@) && \
21 rm -f $@ \
22 $(foreach file,$(officecfg_XCSFILES),\
23 && echo "#include <officecfg/$(file).hxx>" >> $@)
25 # pass the stem as space separated path elements and get a set of --stringparam ns<level> <element> in return
26 officecfg_xsltparams=$(if $(filter-out $(lastword $1),$1),$(call officecfg_xsltparams,$(filter-out $(lastword $1),$1))) --stringparam ns$(words $1) $(lastword $1)
28 $(call gb_CustomTarget_get_workdir,officecfg/registry)/officecfg/%.hxx: \
29 $(SRCDIR)/officecfg/registry/schema/org/openoffice/%.xcs \
30 $(SRCDIR)/officecfg/registry/cppheader.xsl\
31 | $(call gb_ExternalExecutable_get_dependencies,xsltproc)
32 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),XSL,1)
33 $(call gb_Helper_abbreviate_dirs, \
34 mkdir -p $(dir $@) && \
35 $(call gb_ExternalExecutable_get_command,xsltproc) --nonet $(call officecfg_xsltparams,$(subst /, ,$*)) \
36 -o $@ $(SRCDIR)/officecfg/registry/cppheader.xsl $<)
38 # vim: set noet sw=4 ts=4: