Build system: find a term for wmfsrc
This commit is contained in:
parent
337732f45b
commit
a332f8f85e
1
.gitignore
vendored
1
.gitignore
vendored
@ -14,3 +14,4 @@ config.h
|
||||
build/
|
||||
doc/
|
||||
wmfs.doxygen
|
||||
wmfsrc
|
||||
|
||||
@ -173,13 +173,18 @@ else()
|
||||
set(WMFS_MAN_PATH ${PREFIX}/share/man CACHE PATH "wmfs manpage directory")
|
||||
endif()
|
||||
|
||||
# {{ Doxygen
|
||||
if(DOXYGEN_EXECUTABLE)
|
||||
add_custom_target(doc
|
||||
COMMAND ${DOXYGEN_EXECUTABLE} ${SOURCE_DIR}/wmfs.doxygen
|
||||
WORKING_DIRECTORY ${BUILD_DIR})
|
||||
endif()
|
||||
# }}
|
||||
|
||||
find_program(URXVT_EXECUTABLE urxvt)
|
||||
if(URXVT_EXECUTABLE)
|
||||
set(WMFS_TERM urxvt)
|
||||
else()
|
||||
set(WMFS_TERM xterm)
|
||||
endif()
|
||||
|
||||
# Remplace strings in configs
|
||||
set(WMFS_VERSION ${VERSION})
|
||||
@ -193,7 +198,8 @@ set(WMFS_SOURCE_DIR ${SOURCE_DIR})
|
||||
# Configure files
|
||||
set(wmfs_configure_files
|
||||
src/config.h.in
|
||||
wmfs.doxygen.in)
|
||||
wmfs.doxygen.in
|
||||
wmfsrc.in)
|
||||
|
||||
macro(a_configure_file file)
|
||||
string(REGEX REPLACE ".in\$" "" outfile ${file})
|
||||
|
||||
@ -5,7 +5,7 @@
|
||||
|
||||
alias
|
||||
{
|
||||
alias term { content = "urxvt" }
|
||||
alias term { content = "@WMFS_TERM@" }
|
||||
}
|
||||
|
||||
misc
|
||||
@ -166,7 +166,7 @@ launcher
|
||||
{
|
||||
name = "launcher_ssh"
|
||||
prompt = "ssh to: "
|
||||
command = "urxvt -e ssh"
|
||||
command = "@WMFS_TERM@ -e ssh"
|
||||
}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user