Skip to content

Commit

Permalink
Mk/Uses/tcl.mk: Add support of 'test' argument
Browse files Browse the repository at this point in the history
Add support of 'test' argument that specifies test-time only
dependency.

PR:		273190
Approved by:	gahr (tcltk, maintainer)
  • Loading branch information
Yasuhiro Kimura authored and Yasuhiro Kimura committed Aug 20, 2023
1 parent ba4eb3a commit 0f5dd65
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions Mk/Uses/tcl.mk
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#
# Usage:
#
# USES+= PORT[:(VERSION|wrapper),build,run,tea]
# USES+= PORT[:(VERSION|wrapper),build,run,tea,test]
#
# where PORT is one of:
#
Expand All @@ -49,7 +49,8 @@
# tk-wrapper is added. It is NOT possible to select a specific version of
# Tcl/Tk when using the wrapper.
#
# Build-time / Run-time only dependencies can be specified with build or run.
# Build-time / Run-time / Test-time only dependencies can be specified with
# build, run or test.
#
# Tea can be used for Tcl/Tk extensions that use the Tcl Extension Architecture
# [http://www.tcl.tk/doc/tea] and allows to set common autoconf parameters.
Expand Down Expand Up @@ -209,6 +210,9 @@ BUILD_DEPENDS+= ${_TCLTK_WRAPPER_PORT} \
. elif ${tcl_ARGS:Mrun}
RUN_DEPENDS+= ${_TCLTK_WRAPPER_PORT} \
${_TCLTK_EXE_LINE}
. elif ${tcl_ARGS:Mtest}
TEST_DEPENDS+= ${_TCLTK_WRAPPER_PORT} \
${_TCLTK_EXE_LINE}
. else
RUN_DEPENDS+= ${_TCLTK_WRAPPER_PORT}
LIB_DEPENDS+= ${_TCLTK_LIB_LINE}
Expand Down

0 comments on commit 0f5dd65

Please sign in to comment.