Branch libreoffice-24-8-3
[LibreOffice.git] / postprocess / CustomTarget_components.mk
blob9f9f24d2bdb6e2c28e1d187f7af8929dd3af9f0f
1 # vim: set noet sw=4 ts=4:
2 # -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
4 # This file is part of the LibreOffice project.
6 # This Source Code Form is subject to the terms of the Mozilla Public
7 # License, v. 2.0. If a copy of the MPL was not distributed with this
8 # file, You can obtain one at http://mozilla.org/MPL/2.0/.
11 $(eval $(call gb_CustomTarget_CustomTarget,postprocess/components))
13 ifeq (,$(gb_PARTIAL_BUILD))
15 postprocess_WORKDIR := $(gb_CustomTarget_workdir)/postprocess
17 $(call gb_CustomTarget_get_target,postprocess/components): \
18 $(postprocess_WORKDIR)/services_constructors.list \
20 gb_EMPTY :=
21 define gb_NEWLINE
23 $(gb_EMPTY)
24 endef
26 $(postprocess_WORKDIR)/services_componentfiles.list: \
27 $(call gb_Rdb_get_target,services) \
28 $(call gb_Rdb_get_target,ure/services) \
29 $(foreach comp,$(gb_ComponentTarget__ALLCOMPONENTS),$(call gb_ComponentTarget_get_target,$(comp))) \
30 | $(postprocess_WORKDIR)/.dir
31 $(call gb_Output_announce,$(subst $(BUILDDIR)/,,$@),$(true),GEN,2)
32 $(file >$@,$(foreach comp,$(sort $(gb_ComponentTarget__ALLCOMPONENTS)),$(call gb_ComponentTarget_get_target,$(comp))$(gb_NEWLINE)))
34 $(postprocess_WORKDIR)/services_constructors.list: \
35 $(SRCDIR)/solenv/bin/constructors.py \
36 $(postprocess_WORKDIR)/services_componentfiles.list \
37 | $(postprocess_WORKDIR)/.dir
38 $(call gb_Output_announce,$(subst $(BUILDDIR)/,,$@),$(true),GEN,2)
39 $(call gb_Helper_abbreviate_dirs,$(call gb_ExternalExecutable_get_command,python) $^) > $@.tmp && \
40 $(call gb_Helper_replace_if_different_and_touch,$@.tmp,$@)
42 .PHONY: $(postprocess_WORKDIR)/services_componentfiles.list
44 endif # gb_PARTIAL_BUILD
46 # vim: set noet sw=4: