[Libreoffice-commits] core.git: scp2/AutoInstallLibs_base.mk scp2/AutoInstallLibs_gnome.mk scp2/AutoInstallLibs_graphicfilter.mk scp2/AutoInstallLibs_impress.mk scp2/AutoInstallLibs_kde.mk scp2/AutoInstallLibs_math.mk scp2/AutoInstallLibs.mk scp2/AutoInstallLibs_onlineupdate.mk scp2/AutoInstallLibs_ooo.mk scp2/AutoInstallLibs_tde.mk scp2/AutoInstallLibs_ure.mk scp2/AutoInstallLibs_writer.mk scp2/Module_scp2.mk solenv/gbuild

Matúš Kukan matus.kukan at gmail.com
Fri Jun 7 06:11:36 PDT 2013


 scp2/AutoInstallLibs.mk               |   24 ++++++++++++++++++++++++
 scp2/AutoInstallLibs_base.mk          |   12 ------------
 scp2/AutoInstallLibs_gnome.mk         |   12 ------------
 scp2/AutoInstallLibs_graphicfilter.mk |   12 ------------
 scp2/AutoInstallLibs_impress.mk       |   12 ------------
 scp2/AutoInstallLibs_kde.mk           |   12 ------------
 scp2/AutoInstallLibs_math.mk          |   12 ------------
 scp2/AutoInstallLibs_onlineupdate.mk  |   12 ------------
 scp2/AutoInstallLibs_ooo.mk           |   12 ------------
 scp2/AutoInstallLibs_tde.mk           |   12 ------------
 scp2/AutoInstallLibs_ure.mk           |   12 ------------
 scp2/AutoInstallLibs_writer.mk        |   12 ------------
 scp2/Module_scp2.mk                   |   12 +-----------
 solenv/gbuild/AutoInstallLibs.mk      |   16 ++++++++++++----
 14 files changed, 37 insertions(+), 147 deletions(-)

New commits:
commit 9edb6984a11c2a2c3fc8d859077e7521894dedeb
Author: Matúš Kukan <matus.kukan at gmail.com>
Date:   Fri Jun 7 15:05:43 2013 +0200

    gbuild: simplify AutoInstallLibs makefiles
    
    Change-Id: I19a0daab185a1ef25f9354f551f8cb0c03064cb1

diff --git a/scp2/AutoInstallLibs.mk b/scp2/AutoInstallLibs.mk
new file mode 100644
index 0000000..7fc4878
--- /dev/null
+++ b/scp2/AutoInstallLibs.mk
@@ -0,0 +1,24 @@
+# -*- 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_AutoInstallLibs_AutoInstallLibs))
+
+$(eval $(call gb_AutoInstallLibs_add_category,base,BASE,LIBO_LIB_FILE,auto_Base_Lib))
+$(eval $(call gb_AutoInstallLibs_add_category,gnome,GNOME,LIBO_LIB_FILE,auto_Gnome_Lib))
+$(eval $(call gb_AutoInstallLibs_add_category,graphicfilter,GRAPHICFILTER,LIBO_LIB_FILE,auto_Graphicfilter_Lib))
+$(eval $(call gb_AutoInstallLibs_add_category,impress,IMPRESS,LIBO_LIB_FILE,auto_Impress_Lib))
+$(eval $(call gb_AutoInstallLibs_add_category,kde,KDE,LIBO_LIB_FILE,auto_Kde_Lib))
+$(eval $(call gb_AutoInstallLibs_add_category,math,MATH,LIBO_LIB_FILE,auto_Math_Lib))
+$(eval $(call gb_AutoInstallLibs_add_category,onlineupdate,ONLINEUPDATE,LIBO_LIB_FILE,auto_Onlineupdate_Lib))
+$(eval $(call gb_AutoInstallLibs_add_category,ooo,OOO,LIBO_LIB_FILE,auto_File_Lib))
+$(eval $(call gb_AutoInstallLibs_add_category,tde,TDE,LIBO_LIB_FILE,auto_Tde_Lib))
+$(eval $(call gb_AutoInstallLibs_add_category,ure,URE,URE_PRIVATE_LIB,auto_Ure_Private_Lib))
+$(eval $(call gb_AutoInstallLibs_add_category,writer,WRITER,LIBO_LIB_FILE,auto_Writer_Lib))
+
+# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_base.mk b/scp2/AutoInstallLibs_base.mk
deleted file mode 100644
index 5cb70c2..0000000
--- a/scp2/AutoInstallLibs_base.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,base,BASE,LIBO_LIB_FILE,auto_Base_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_gnome.mk b/scp2/AutoInstallLibs_gnome.mk
deleted file mode 100644
index c388a29..0000000
--- a/scp2/AutoInstallLibs_gnome.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,gnome,GNOME,LIBO_LIB_FILE,auto_Gnome_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_graphicfilter.mk b/scp2/AutoInstallLibs_graphicfilter.mk
deleted file mode 100644
index 08efa78..0000000
--- a/scp2/AutoInstallLibs_graphicfilter.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,graphicfilter,GRAPHICFILTER,LIBO_LIB_FILE,auto_Graphicfilter_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_impress.mk b/scp2/AutoInstallLibs_impress.mk
deleted file mode 100644
index 597e12b..0000000
--- a/scp2/AutoInstallLibs_impress.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,impress,IMPRESS,LIBO_LIB_FILE,auto_Impress_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_kde.mk b/scp2/AutoInstallLibs_kde.mk
deleted file mode 100644
index 11f65ee..0000000
--- a/scp2/AutoInstallLibs_kde.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,kde,KDE,LIBO_LIB_FILE,auto_Kde_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_math.mk b/scp2/AutoInstallLibs_math.mk
deleted file mode 100644
index a7ceda8..0000000
--- a/scp2/AutoInstallLibs_math.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,math,MATH,LIBO_LIB_FILE,auto_Math_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_onlineupdate.mk b/scp2/AutoInstallLibs_onlineupdate.mk
deleted file mode 100644
index cd082bb..0000000
--- a/scp2/AutoInstallLibs_onlineupdate.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,onlineupdate,ONLINEUPDATE,LIBO_LIB_FILE,auto_Onlineupdate_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_ooo.mk b/scp2/AutoInstallLibs_ooo.mk
deleted file mode 100644
index dd628d5..0000000
--- a/scp2/AutoInstallLibs_ooo.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,ooo,OOO,LIBO_LIB_FILE,auto_File_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_tde.mk b/scp2/AutoInstallLibs_tde.mk
deleted file mode 100644
index daea3c3..0000000
--- a/scp2/AutoInstallLibs_tde.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,tde,TDE,LIBO_LIB_FILE,auto_Tde_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_ure.mk b/scp2/AutoInstallLibs_ure.mk
deleted file mode 100644
index 9c280bc..0000000
--- a/scp2/AutoInstallLibs_ure.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,ure,URE,URE_PRIVATE_LIB,auto_Ure_Private_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/AutoInstallLibs_writer.mk b/scp2/AutoInstallLibs_writer.mk
deleted file mode 100644
index 68bd7a4..0000000
--- a/scp2/AutoInstallLibs_writer.mk
+++ /dev/null
@@ -1,12 +0,0 @@
-# -*- 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_AutoInstallLibs_AutoInstallLibs,writer,WRITER,LIBO_LIB_FILE,auto_Writer_Lib))
-
-# vim: set noet sw=4 ts=4:
diff --git a/scp2/Module_scp2.mk b/scp2/Module_scp2.mk
index 7d935fe..c58af2e 100644
--- a/scp2/Module_scp2.mk
+++ b/scp2/Module_scp2.mk
@@ -10,17 +10,7 @@
 $(eval $(call gb_Module_Module,scp2))
 
 $(eval $(call gb_Module_add_targets,scp2,\
-	AutoInstallLibs_base \
-	AutoInstallLibs_onlineupdate \
-	AutoInstallLibs_graphicfilter \
-	AutoInstallLibs_tde \
-	AutoInstallLibs_impress \
-	AutoInstallLibs_gnome \
-	AutoInstallLibs_kde \
-	AutoInstallLibs_math \
-	AutoInstallLibs_ooo \
-	AutoInstallLibs_ure \
-	AutoInstallLibs_writer \
+	AutoInstallLibs \
 	CustomTarget_langmacros \
 	InstallModule_accessories \
 	InstallModule_base \
diff --git a/solenv/gbuild/AutoInstallLibs.mk b/solenv/gbuild/AutoInstallLibs.mk
index 3555c23..ab520d6 100644
--- a/solenv/gbuild/AutoInstallLibs.mk
+++ b/solenv/gbuild/AutoInstallLibs.mk
@@ -15,7 +15,6 @@ $(dir $(call gb_AutoInstallLibs_get_target,%)).dir :
 $(call gb_AutoInstallLibs_get_target,%) : $(SRCDIR)/Repository.mk
 	$(call gb_Output_announce,$*,$(true),AIL,3)
 	echo "/* autogenerated library installs for group $(INSTALLMODULE) */" > $@
-	$(call gb_Output_info,install module: $(INSTALLMODULE) contents: $(gb_Library_MODULE_$(INSTALLMODULE)))
 	echo "#define $(SCP2ID)_ALL \ " >> $@
 	$(foreach lib,$(gb_Library_MODULE_$(INSTALLMODULE)),\
 		echo "    $(SCP2ID)_$(lib), \ " >> $@;)
@@ -29,15 +28,24 @@ $(call gb_AutoInstallLibs_get_clean_target,%) :
 	rm -f $(call gb_AutoInstallLibs_get_target,$*)
 
 define gb_AutoInstallLibs_AutoInstallLibs
+$(call gb_AutoInstallLibs_get_target,all) :| $(dir $(call gb_AutoInstallLibs_get_target,all)).dir
+
+$$(eval $$(call gb_Module_register_target,$(call gb_AutoInstallLibs_get_target,all),$(call gb_AutoInstallLibs_get_clean_target,all)))
+$(call gb_Helper_make_userfriendly_targets,all,AutoInstallLibs)
+
+endef
+
+define gb_AutoInstallLibs_add_category
+$(call gb_AutoInstallLibs_get_target,all) : $(call gb_AutoInstallLibs_get_target,$(1))
+$(call gb_AutoInstallLibs_get_clean_target,all) : $(call gb_AutoInstallLibs_get_clean_target,$(1))
+$(call gb_Helper_make_userfriendly_targets,$(1),AutoInstallLibs)
+
 $(call gb_AutoInstallLibs_get_target,$(1)) : $(gb_Module_CURRENTMAKEFILE)
 $(call gb_AutoInstallLibs_get_target,$(1)) :| $(dir $(call gb_AutoInstallLibs_get_target,$(1))).dir
 $(call gb_AutoInstallLibs_get_target,$(1)) : INSTALLMODULE = $(2)
 $(call gb_AutoInstallLibs_get_target,$(1)) : SCP2TEMPLATE = $(3)
 $(call gb_AutoInstallLibs_get_target,$(1)) : SCP2ID = $(4)
 
-$$(eval $$(call gb_Module_register_target,$(call gb_AutoInstallLibs_get_target,$(1)),$(call gb_AutoInstallLibs_get_clean_target,$(1))))
-$(call gb_Helper_make_userfriendly_targets,$(1),AutoInstallLibs)
-
 endef
 
 # vim: set shiftwidth=4 tabstop=4 noexpandtab:


More information about the Libreoffice-commits mailing list