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