Docs: Only Expose Working targets
$ cmake ..
-- Git project directory is clean
-- Building Allpix^2 version v2.0.0-1079-g6870fef75-dirty.
-- Building "RelWithDebInfo"
[..]
-- Build files have been written to: /home/simonspa/software/allpix-squared/build
$ make apsq_docs_pdf
[ 0%] Generating source tree of the Markdown documentation
[ 0%] Built target apsq_docs_markdown
[ 0%] Generating source tree of the LaTeX documentation
[ 0%] Built target apsq_docs_latex
[100%] Generating the PDF documentation
/bin/sh: 1: latexmk: not found
make[3]: *** [doc/CMakeFiles/apsq_docs_pdf.dir/build.make:75: doc/CMakeFiles/apsq_docs_pdf] Error 127
make[2]: *** [CMakeFiles/Makefile2:1236: doc/CMakeFiles/apsq_docs_pdf.dir/all] Error 2
make[1]: *** [CMakeFiles/Makefile2:1243: doc/CMakeFiles/apsq_docs_pdf.dir/rule] Error 2
make: *** [Makefile:382: apsq_docs_pdf] Error 2
Only add CMake target apsq_docs_pdf
if necessary tools have been found.