2012-05-27 15:50:41 -05:00
|
|
|
# -*- Mode: makefile-gmake; tab-width: 4; indent-tabs-mode: t -*-
|
|
|
|
#
|
2013-04-24 11:14:03 -05:00
|
|
|
# This file is part of the LibreOffice project.
|
2012-05-27 15:50:41 -05:00
|
|
|
#
|
2013-04-24 11:14:03 -05:00
|
|
|
# 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/.
|
2012-05-27 15:50:41 -05:00
|
|
|
#
|
|
|
|
|
|
|
|
$(eval $(call gb_CustomTarget_CustomTarget,pyuno/python_shell))
|
|
|
|
|
2013-01-01 05:42:09 -06:00
|
|
|
$(eval $(call gb_CustomTarget_register_targets,pyuno/python_shell,\
|
|
|
|
os.sh \
|
|
|
|
python.sh \
|
|
|
|
))
|
2012-05-27 15:50:41 -05:00
|
|
|
|
|
|
|
ifeq ($(OS),MACOSX)
|
2012-11-27 08:32:36 -06:00
|
|
|
pyuno_PYTHON_SHELL_VERSION:=$(PYTHON_VERSION_MAJOR).$(PYTHON_VERSION_MINOR)
|
2012-05-27 15:50:41 -05:00
|
|
|
else
|
2012-11-27 08:32:36 -06:00
|
|
|
pyuno_PYTHON_SHELL_VERSION:=$(PYTHON_VERSION)
|
2012-05-27 15:50:41 -05:00
|
|
|
endif
|
|
|
|
|
2013-01-01 05:42:09 -06:00
|
|
|
$(call gb_CustomTarget_get_workdir,pyuno/python_shell)/python.sh : \
|
|
|
|
$(SRCDIR)/pyuno/zipcore/python.sh \
|
|
|
|
$(call gb_CustomTarget_get_workdir,pyuno/python_shell)/os.sh
|
|
|
|
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),CAT,1)
|
|
|
|
cat $^ > $@ && chmod +x $@
|
|
|
|
|
|
|
|
$(call gb_CustomTarget_get_workdir,pyuno/python_shell)/os.sh : \
|
|
|
|
$(SRCDIR)/pyuno/zipcore/$(if $(filter MACOSX,$(OS)),mac,nonmac).sh
|
2012-05-27 15:50:41 -05:00
|
|
|
$(call gb_Output_announce,$(subst $(WORKDIR)/,,$@),$(true),SED,1)
|
2013-01-01 05:42:09 -06:00
|
|
|
sed -e "s/%%PYVERSION%%/$(pyuno_PYTHON_SHELL_VERSION)/g" \
|
2013-08-30 23:02:44 -05:00
|
|
|
-e "s,%%PYTHON_FRAMEWORK_RELATIVE_PATH%%,$(if $(ENABLE_MACOSX_MACLIKE_APP_STRUCTURE),../Frameworks/),g" \
|
2013-01-01 05:42:09 -06:00
|
|
|
$< > $@
|
2012-05-27 15:50:41 -05:00
|
|
|
|
|
|
|
# vim: set noet sw=4 ts=4:
|