Install doc_pdf by default

No need to use INSTALL_TARGET anymore

OK bluhm@ (maintainer)
This commit is contained in:
rsadowski 2022-09-01 13:53:05 +00:00
parent 1711bca968
commit 25fffc7641
2 changed files with 16 additions and 2 deletions

View File

@ -46,8 +46,6 @@ CONFIGURE_ARGS = -DCMAKE_BUILD_TYPE=RelWithDebInfo \
DEBUG_PACKAGES = ${BUILD_PACKAGES}
ALL_TARGET = all doc_pdf
FLAVORS = ns0_full
FLAVOR ?=

View File

@ -0,0 +1,16 @@
"Indicate that this target should be added to the default build target so that
it will be run every time."
https://cmake.org/cmake/help/latest/command/add_custom_target.html
Index: doc/CMakeLists.txt
--- doc/CMakeLists.txt.orig
+++ doc/CMakeLists.txt
@@ -74,7 +74,7 @@ add_custom_target(doc_latex ${SPHINX_EXECUTABLE}
COMMENT "Building LaTeX sources for documentation with Sphinx")
add_dependencies(doc_latex open62541)
-add_custom_target(doc_pdf ${PDFLATEX_COMPILER} -interaction=batchmode "open62541.tex"
+add_custom_target(doc_pdf ALL ${PDFLATEX_COMPILER} -interaction=batchmode "open62541.tex"
WORKING_DIRECTORY ${DOC_LATEX_DIR}
# compile it twice so that the contents pages are correct
COMMAND ${PDFLATEX_COMPILER} -interaction=batchmode "open62541.tex"