mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-12-22 13:18:28 +00:00
Creation of LFUNs.lyx added
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@38812 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
82741b94a0
commit
6551ff4a39
@ -41,8 +41,8 @@ Features
|
|||||||
- tarball creation, most notably i dont see any list of files which should go into tarball, we dont want everything to go there
|
- tarball creation, most notably i dont see any list of files which should go into tarball, we dont want everything to go there
|
||||||
(ie "make distcheck" to check tree is prepared for release, "make dist" for actual release)
|
(ie "make distcheck" to check tree is prepared for release, "make dist" for actual release)
|
||||||
these are nice to have and present in autotools, though not critical
|
these are nice to have and present in autotools, though not critical
|
||||||
- target for regenaration of lfuns manual would be nice (ie make lfundoc)
|
- DONE: target for regenaration of lfuns manual would be nice (ie make lfundoc)
|
||||||
- target for doxygen generation (ie make doxydoc)
|
- DONE: target for doxygen generation (ie make doxydoc)
|
||||||
* DONE: get patch version from configure.ac (regex)
|
* DONE: get patch version from configure.ac (regex)
|
||||||
|
|
||||||
|
|
||||||
|
@ -9,6 +9,7 @@ project(doc)
|
|||||||
|
|
||||||
SET(_docs)
|
SET(_docs)
|
||||||
file(GLOB_RECURSE _rel_lyx_docs RELATIVE "${TOP_SRC_DIR}/lib/doc" "${TOP_SRC_DIR}/lib/doc/*.lyx" "${TOP_SRC_DIR}/lib/doc/*.txt")
|
file(GLOB_RECURSE _rel_lyx_docs RELATIVE "${TOP_SRC_DIR}/lib/doc" "${TOP_SRC_DIR}/lib/doc/*.lyx" "${TOP_SRC_DIR}/lib/doc/*.txt")
|
||||||
|
list(REMOVE_ITEM _rel_lyx_docs LFUNs.lyx)
|
||||||
|
|
||||||
foreach(_rel_doc ${_rel_lyx_docs})
|
foreach(_rel_doc ${_rel_lyx_docs})
|
||||||
if ("${_rel_doc}" MATCHES "/" )
|
if ("${_rel_doc}" MATCHES "/" )
|
||||||
@ -33,5 +34,14 @@ foreach(_rel_doc ${_rel_lyx_docs})
|
|||||||
LIST(APPEND _docs "${_created_doc}")
|
LIST(APPEND _docs "${_created_doc}")
|
||||||
endforeach(_rel_doc)
|
endforeach(_rel_doc)
|
||||||
|
|
||||||
|
# Special commands to create and install LFUNs.lyx
|
||||||
|
add_custom_command(
|
||||||
|
OUTPUT LFUNs.lyx
|
||||||
|
COMMAND ${LYX_PYTHON_EXECUTABLE} "${TOP_SRC_DIR}/development/tools/gen_lfuns.py" "${TOP_SRC_DIR}/src/LyXAction.cpp" > LFUNs.lyx
|
||||||
|
DEPENDS "${TOP_SRC_DIR}/development/tools/gen_lfuns.py" "${TOP_SRC_DIR}/src/LyXAction.cpp")
|
||||||
|
LIST(APPEND _docs "${CMAKE_CURRENT_BINARY_DIR}/LFUNs.lyx")
|
||||||
|
install(FILES "${CMAKE_CURRENT_BINARY_DIR}/LFUNs.lyx" DESTINATION "${LYX_DATA_SUBDIR}doc/LFUNs.lyx")
|
||||||
|
|
||||||
ADD_CUSTOM_TARGET(doc ALL DEPENDS ${_docs})
|
ADD_CUSTOM_TARGET(doc ALL DEPENDS ${_docs})
|
||||||
|
|
||||||
|
ADD_CUSTOM_TARGET(lfundoc DEPENDS LFUNs.lyx)
|
||||||
|
Loading…
Reference in New Issue
Block a user