etags for tcl

Signed-off-by: James Cherry <cherry@parallaxsw.com>
This commit is contained in:
James Cherry 2025-07-16 14:57:24 -07:00
parent 4a32cef237
commit 6a74352b1d
1 changed files with 9 additions and 3 deletions

View File

@ -586,16 +586,22 @@ install(DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/include/sta DESTINATION include)
################################################################
add_custom_target(sta_tags etags -o TAGS
add_custom_target(sta_tags
COMMAND etags -o TAGS
${STA_SOURCE}
*/*.hh
include/sta/*.hh
${CMAKE_CURRENT_BINARY_DIR}/include/sta/*.hh
${SWIG_FILES}
${SWIG_FILES}
# Append tcl tags.
# Note that the regexp used for tcl files is broken in etags so provide one that works.
COMMAND etags -a -o TAGS --language=none
--regex='/^[ \\t]*proc[ \\t]+[a-zA-Z0-9_]+/'
${STA_TCL_FILES}
${SWIG_TCL_FILES}
WORKING_DIRECTORY ${STA_HOME}
)
)
add_custom_command(
TARGET OpenSTA