Annotation of pkgsrc/lang/python/tool.mk, revision 1.5
1.5 ! jperkin 1: # $NetBSD: tool.mk,v 1.4 2023/06/27 10:31:21 riastradh Exp $
1.1 obache 2: #
3: # Create `python' interpreter wrapper for applicable Python bin.
4: #
1.3 gutterid 5: # This mk fragment can be included in all packages that use `python'
1.2 nia 6: # as a tool without a pkgsrc-style version suffix.
1.1 obache 7: #
8: # Keywords: python
9: #
10:
11: .if !defined(PYTHON_TOOL_MK)
12: PYTHON_TOOL_MK= defined
13:
14: .if !defined(PYTHON_PYVERSION_MK)
1.5 ! jperkin 15: PYTHON_FOR_BUILD_ONLY?= tool
1.1 obache 16: .include "../../lang/python/pyversion.mk"
17: .endif
18:
19: BUILDLINK_TARGETS+= buildlink-bin-python
20:
21: .PHONY: buildlink-bin-python
22: buildlink-bin-python:
1.2 nia 23: .for bin in python python${PYVERSSUFFIX:R}
1.1 obache 24: ${RUN} \
1.2 nia 25: t=${BUILDLINK_DIR}/bin/${bin}; \
1.4 riastrad 26: if ${TEST} -f "${TOOL_PYTHONBIN}" -a ! -f $$t; then \
27: ${LN} -sf "${TOOL_PYTHONBIN}" $$t; \
1.1 obache 28: fi
1.2 nia 29: .endfor
1.1 obache 30:
31: .endif # PYTHON_TOOL_MK
CVSweb <webmaster@jp.NetBSD.org>