Kaydet (Commit) 3cccff0b authored tarafından Christian Lohmaier's avatar Christian Lohmaier

simplify personas generation by using a single template

Change-Id: I127181fff198dd865d0d958675db7446c73d09d0
Reviewed-on: https://gerrit.libreoffice.org/62427Reviewed-by: 's avatarChristian Lohmaier <lohmaier+LibreOffice@googlemail.com>
Tested-by: Jenkins
üst db7e454b
......@@ -74,12 +74,6 @@ endif
$(eval $(call gb_Module_add_targets,extras,\
Personas \
Persona_dark \
Persona_gray \
Persona_green \
Persona_pink \
Persona_sand \
Persona_white \
))
$(eval $(call gb_Module_add_targets,extras,\
......
# -*- 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_Package_Package,extras_persona_dark,$(SRCDIR)/extras/source/gallery/personas/dark))
$(eval $(call gb_Package_add_files,extras_persona_dark,$(LIBO_SHARE_FOLDER)/gallery/personas/dark,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:
# -*- 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_Package_Package,extras_persona_gray,$(SRCDIR)/extras/source/gallery/personas/gray))
$(eval $(call gb_Package_add_files,extras_persona_gray,$(LIBO_SHARE_FOLDER)/gallery/personas/gray,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:
# -*- 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_Package_Package,extras_persona_green,$(SRCDIR)/extras/source/gallery/personas/green))
$(eval $(call gb_Package_add_files,extras_persona_green,$(LIBO_SHARE_FOLDER)/gallery/personas/green,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:
# -*- 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_Package_Package,extras_persona_pink,$(SRCDIR)/extras/source/gallery/personas/pink))
$(eval $(call gb_Package_add_files,extras_persona_pink,$(LIBO_SHARE_FOLDER)/gallery/personas/pink,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:
# -*- 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_Package_Package,extras_persona_sand,$(SRCDIR)/extras/source/gallery/personas/sand))
$(eval $(call gb_Package_add_files,extras_persona_sand,$(LIBO_SHARE_FOLDER)/gallery/personas/sand,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:
# -*- 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_Package_Package,extras_persona_white,$(SRCDIR)/extras/source/gallery/personas/white))
$(eval $(call gb_Package_add_files,extras_persona_white,$(LIBO_SHARE_FOLDER)/gallery/personas/white,\
footer.png \
header.png \
preview.png \
))
# vim: set noet sw=4 ts=4:
......@@ -7,8 +7,24 @@
# file, You can obtain one at http://mozilla.org/MPL/2.0/.
#
LO_PERSONAS_LIST=dark gray green pink sand white
$(foreach persona,$(LO_PERSONAS_LIST),\
$(eval $(call gb_Package_Package,extras_persona_$(persona),$(SRCDIR)/extras/source/gallery/personas/$(persona))) \
$(eval $(call gb_Package_add_files,extras_persona_$(persona),$(LIBO_SHARE_FOLDER)/gallery/personas/$(persona),\
footer.png \
header.png \
preview.png \
))\
$(eval $(call gb_Package_get_target,extras_personas): $(call gb_Package_get_target,extras_persona_$(persona))) \
)
$(eval $(call gb_Package_Package,extras_personas,$(SRCDIR)/extras/source/gallery/personas))
$(call gb_Package_get_clean_target,extras_personas):
rm -rf $(INSTROOT)/$(LIBO_SHARE_FOLDER)/gallery/personas
# TODO: generate this, and potentiallly make labels translatable
$(eval $(call gb_Package_add_files,extras_personas,$(LIBO_SHARE_FOLDER)/gallery/personas,\
personas_list.txt \
))
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment