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