Version 7.1.7.1, tag libreoffice-7.1.7.1
[LibreOffice.git] / pyuno / CustomTarget_python_shell.mk
blob541620304d89ec742d987db67f43879ea4cb8258
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 $(eval $(call gb_CustomTarget_CustomTarget,pyuno/python_shell))
12 $(eval $(call gb_CustomTarget_register_targets,pyuno/python_shell,\
13 os.sh \
14 python.sh \
17 ifeq ($(OS),MACOSX)
18 pyuno_PYTHON_SHELL_VERSION:=$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)
19 else
20 pyuno_PYTHON_SHELL_VERSION:=$(PYTHON_VERSION)
21 endif
23 $(call gb_CustomTarget_get_workdir,pyuno/python_shell)/python.sh : \
24 $(SRCDIR)/pyuno/zipcore/python.sh \
25 $(call gb_CustomTarget_get_workdir,pyuno/python_shell)/os.sh
26 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CAT,1)
27 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),CAT)
28 cat $^ > $@ && chmod +x $@
29 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),CAT)
31 $(call gb_CustomTarget_get_workdir,pyuno/python_shell)/os.sh : \
32 $(SRCDIR)/pyuno/zipcore/$(if $(filter MACOSX,$(OS)),mac,nonmac).sh \
33 $(BUILDDIR)/config_$(gb_Side)/config_python.h
34 $(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SED,1)
35 $(call gb_Trace_StartRange,$(subst $(WORKDIR)/,,$@),SED)
36 sed -e "s/%%PYVERSION%%/$(pyuno_PYTHON_SHELL_VERSION)/g" \
37 $< > $@
38 $(call gb_Trace_EndRange,$(subst $(WORKDIR)/,,$@),SED)
40 # vim: set noet sw=4 ts=4: