1 # ===========================================================================
2 # http://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html
3 # ===========================================================================
7 # Copyright (c) 2009 Oren Ben-Kiki <oren@ben-kiki.org>
9 # Copying and distribution of this file, with or without modification, are
10 # permitted in any medium without royalty provided the copyright notice
11 # and this notice are preserved. This file is offered as-is, without any
14 ## --------------------------------- ##
15 ## Format-independent Doxygen rules. ##
16 ## --------------------------------- ##
19 ## ------------------------------- ##
20 ## Rules specific for HTML output. ##
21 ## ------------------------------- ##
23 DX_CLEAN_HTML = @DX_DOCDIR@/html
25 ## ------------------------------ ##
26 ## Rules specific for CHM output. ##
27 ## ------------------------------ ##
29 DX_CLEAN_CHM = @DX_DOCDIR@/chm
31 DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
34 ## ------------------------------ ##
35 ## Rules specific for MAN output. ##
36 ## ------------------------------ ##
38 DX_CLEAN_MAN = @DX_DOCDIR@/man
40 ## ------------------------------ ##
41 ## Rules specific for RTF output. ##
42 ## ------------------------------ ##
44 DX_CLEAN_RTF = @DX_DOCDIR@/rtf
46 ## ------------------------------ ##
47 ## Rules specific for XML output. ##
48 ## ------------------------------ ##
50 DX_CLEAN_XML = @DX_DOCDIR@/xml
52 ## ----------------------------- ##
53 ## Rules specific for PS output. ##
54 ## ----------------------------- ##
56 DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
57 DX_PS_GOAL = doxygen-ps
58 doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
59 @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
60 cd @DX_DOCDIR@/latex; \
61 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
62 $(DX_LATEX) refman.tex; \
63 $(MAKEINDEX_PATH) refman.idx; \
64 $(DX_LATEX) refman.tex; \
66 while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
67 refman.log > /dev/null 2>&1 \
68 && test $$countdown -gt 0; do \
69 $(DX_LATEX) refman.tex; \
70 countdown=`expr $$countdown - 1`; \
72 $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
74 ## ------------------------------ ##
75 ## Rules specific for PDF output. ##
76 ## ------------------------------ ##
78 DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
79 DX_PDF_GOAL = doxygen-pdf
80 doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
81 @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
82 TEXINPUTS="`pwd`:.:${TEXINPUTS}"; \
84 cd @DX_DOCDIR@/latex; \
85 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
86 $(DX_PDFLATEX) refman.tex; \
87 $(DX_MAKEINDEX) refman.idx; \
88 $(DX_PDFLATEX) refman.tex; \
90 while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
91 refman.log > /dev/null 2>&1 \
92 && test $$countdown -gt 0; do \
93 $(DX_PDFLATEX) refman.tex; \
94 countdown=`expr $$countdown - 1`; \
96 mv refman.pdf ../@PACKAGE@.pdf
98 ## ------------------------------------------------- ##
99 ## Rules specific for LaTeX (shared for PS and PDF). ##
100 ## ------------------------------------------------- ##
102 DX_CLEAN_LATEX = @DX_DOCDIR@/latex
104 .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
105 .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
106 doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
107 doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
108 @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
110 $(DX_ENV) $(DX_DOXYGEN) $(DX_CONFIG)
112 @DX_DOCDIR@/@PACKAGE@.tag \