build: Add more dependencies to the ldoc target

Right now it was possible to modify `rc.lua` without the doc being
aware of it.
This commit is contained in:
Emmanuel Lepage Vallee 2018-10-12 14:01:11 -04:00
parent 90b17bdc09
commit 6ac8f30d62
1 changed files with 6 additions and 1 deletions

View File

@ -289,7 +289,12 @@ if(GENERATE_DOC)
file(COPY ${SOURCE_DIR}/docs/ldoc.css DESTINATION ${BUILD_DIR}/docs)
add_custom_target(ldoc ALL
DEPENDS ${BUILD_DIR}/doc/index.html ${BUILD_DIR}/docs/ldoc.css)
DEPENDS
${BUILD_DIR}/doc/index.html
${BUILD_DIR}/docs/ldoc.css
generate_awesomerc
)
if (STRICT_TESTS)
set(ldoc_args --fatalwarnings .)
set(ldoc_desc_suffix " (fatal warnings)")