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
,\
18 pyuno_PYTHON_SHELL_VERSION
:=$(PYTHON_VERSION_MAJOR
).
$(PYTHON_VERSION_MINOR
)
20 pyuno_PYTHON_SHELL_VERSION
:=$(PYTHON_VERSION
)
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 cat
$^
> $@
&& chmod
+x
$@
29 $(call gb_CustomTarget_get_workdir
,pyuno
/python_shell
)/os.sh
: \
30 $(SRCDIR
)/pyuno
/zipcore
/$(if
$(filter MACOSX
,$(OS
)),mac
,nonmac
).sh \
31 $(BUILDDIR
)/config_
$(gb_Side
)/config_python.h
32 $(call gb_Output_announce
,$(subst $(WORKDIR
)/,,$@
),$(true
),SED
,1)
33 sed
-e
"s/%%PYVERSION%%/$(pyuno_PYTHON_SHELL_VERSION)/g" \
36 # vim: set noet sw=4 ts=4: