lw-build-system/skel/src/docs/build.docs

42 lines
893 B
Plaintext
Raw Normal View History

2006-07-24 14:24:06 +01:00
# These are external variables, and shouldn't clash with anything else
# DOCS_BUILT
#
MONOLITHIC_DOC="${MONOLITHIC_DOC} $(echo src/docs/*.dox)"
build_target monolithic
if [ -z ${DOCS_BUILT} ]
then
echo "Building documentation with Doxygen..."
DOXYFILE=obj/Doxyfile
if [ ! -e ${DOXYFILE} ]
then
do_cmd cp src/docs/Doxyfile.in ${DOXYFILE} || return 1
echo "INPUT = ${MONOLITHIC_DOC}" >> ${DOXYFILE}
2006-07-24 15:32:19 +01:00
echo "PROJECT_NUMBER = ${VERSION}" >> ${DOXYFILE}
2006-07-24 14:24:06 +01:00
fi
MODIFIED=0
for file in ${MONOLITHIC_DOC}
do
if [ ${file} -nt html/index.html ]
2006-07-24 15:32:19 +01:00
then
MODIFIED=1
break
fi
2006-07-24 14:24:06 +01:00
done
if [ ${MODIFIED} -ne 0 ]
then
do_cmd doxygen ${DOXYFILE} || return 1
2006-07-24 15:32:19 +01:00
print_success "Documentation built"
2006-07-24 14:24:06 +01:00
else
print_success "Documentation is up to date"
fi
DOCS_BUILT=1
fi