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