@( \
echo "### @@@ -= DO NOT EDIT THIS FILE =- @@@ ###" && \
echo "### @@@ Make changes to Doxyfile.in @@@ ###" && \
- sed -e 's,@srcdir\@,$(srcdir),' $< \
+ sed -e 's,@srcdir\@,$(srcdir),' \
+ -e 's,@builddir\@,$(builddir),' \
+ -e 's,@doxygen_as_html\@,$(doxygen_as_html),' \
+ -e 's,@doxygen_as_pdf\@,$(doxygen_as_pdf),' $< \
) > $@
+THE_MANUAL = doxygen/latex/refman.pdf
+
doxygen::
$(MAKE) Doxyfile
doxygen Doxyfile 2>&1 | perl $(srcdir)/tools/logger.pl > doxygen.log
+ @if [ -f doxygen/latex/refman.tex ]; then \
+ echo "Creating $(THE_MANUAL)..."; \
+ $(MAKE) $(THE_MANUAL); \
+ else \
+ echo "Skipping Doxygen PDF..."; \
+ fi
+
+$(THE_MANUAL): %.pdf: %.tex
+ -cd $$(dirname $*) && pdflatex $$(basename $*)
+ -cd $$(dirname $*) && pdflatex $$(basename $*)
TCL_PATH = tcl
# command to find paths of script files, relative to TCL_PATH