bump product version to 4.1.6.2
[LibreOffice.git] / solenv / gbuild / AutoInstallLibs.mk
blob076d582eef43f176ee983034da18f475de037939
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 # AutoInstallLibs class
12 define gb_AutoInstallLibs__make_define
13 echo "#define $(SCP2ID)_ALL \ " >> $@
14 $(foreach binary,$(filter-out $(lastword $(1)),$(1)),echo " $(binary), \ " >> $@;)
15 echo " $(lastword $(1))" >> $@;
16 echo "" >> $@
17 endef
19 $(dir $(call gb_AutoInstallLibs_get_target,%)).dir :
20 $(if $(wildcard $(dir $@)),,mkdir -p $(dir $@))
22 $(call gb_AutoInstallLibs_get_target,%) : $(SRCDIR)/Repository.mk
23 $(call gb_Output_announce,$*,$(true),AIL,3)
24 echo "/* autogenerated library installs for group $(INSTALLMODULE) */" > $@
25 $(call gb_Output_info,install module: $(INSTALLMODULE) contents: $(gb_Library_MODULE_$(INSTALLMODULE)))
26 $(call gb_AutoInstallLibs__make_define,\
27 $(foreach lib,$(gb_Library_MODULE_$(INSTALLMODULE)),$(SCP2ID)_$(lib)))
28 $(foreach lib,$(gb_Library_MODULE_$(INSTALLMODULE)),\
29 echo "$(SCP2TEMPLATE)($(SCP2ID)_$(lib),$(call gb_Library_get_runtime_filename,$(lib)))" >> $@;)
32 $(call gb_AutoInstallLibs_get_clean_target,%) :
33 $(call gb_Output_announce,$*,$(false),AIL,3)
34 rm -f $(call gb_AutoInstallLibs_get_target,$*)
36 define gb_AutoInstallLibs_AutoInstallLibs
37 $(call gb_AutoInstallLibs_get_target,$(1)) : $(gb_Module_CURRENTMAKEFILE)
38 $(call gb_AutoInstallLibs_get_target,$(1)) :| $(dir $(call gb_AutoInstallLibs_get_target,$(1))).dir
39 $(call gb_AutoInstallLibs_get_target,$(1)) : INSTALLMODULE = $(2)
40 $(call gb_AutoInstallLibs_get_target,$(1)) : SCP2TEMPLATE = $(3)
41 $(call gb_AutoInstallLibs_get_target,$(1)) : SCP2ID = $(4)
43 $$(eval $$(call gb_Module_register_target,$(call gb_AutoInstallLibs_get_target,$(1)),$(call gb_AutoInstallLibs_get_clean_target,$(1))))
44 $(call gb_Helper_make_userfriendly_targets,$(1),AutoInstallLibs)
46 endef
48 # vim: set shiftwidth=4 tabstop=4 noexpandtab: