1 # Copyright (c) 2009 Oren Ben-Kiki <oren@ben-kiki.org>
3 # Copying and distribution of this file, with or without modification, are
4 # permitted in any medium without royalty provided the copyright notice
5 # and this notice are preserved. This file is offered as-is, without any
8 # ===========================================================================
9 # http://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html
10 # ===========================================================================
13 ## --------------------------------- ##
14 ## Format-independent Doxygen rules. ##
15 ## --------------------------------- ##
19 ## ------------------------------- ##
20 ## Rules specific for HTML output. ##
21 ## ------------------------------- ##
25 DX_CLEAN_HTML = @DX_DOCDIR@/html
29 ## ------------------------------ ##
30 ## Rules specific for CHM output. ##
31 ## ------------------------------ ##
35 DX_CLEAN_CHM = @DX_DOCDIR@/chm
39 DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
45 ## ------------------------------ ##
46 ## Rules specific for MAN output. ##
47 ## ------------------------------ ##
51 DX_CLEAN_MAN = @DX_DOCDIR@/man
55 ## ------------------------------ ##
56 ## Rules specific for RTF output. ##
57 ## ------------------------------ ##
61 DX_CLEAN_RTF = @DX_DOCDIR@/rtf
65 ## ------------------------------ ##
66 ## Rules specific for XML output. ##
67 ## ------------------------------ ##
71 DX_CLEAN_XML = @DX_DOCDIR@/xml
75 ## ----------------------------- ##
76 ## Rules specific for PS output. ##
77 ## ----------------------------- ##
81 DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
83 DX_PS_GOAL = doxygen-ps
85 doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
87 @DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
88 cd @DX_DOCDIR@/latex; \
89 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
90 $(DX_LATEX) refman.tex; \
91 $(MAKEINDEX_PATH) refman.idx; \
92 $(DX_LATEX) refman.tex; \
94 while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
95 refman.log > /dev/null 2>&1 \
96 && test $$countdown -gt 0; do \
97 $(DX_LATEX) refman.tex; \
98 countdown=`expr $$countdown - 1`; \
100 $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
104 ## ------------------------------ ##
105 ## Rules specific for PDF output. ##
106 ## ------------------------------ ##
110 DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
112 DX_PDF_GOAL = doxygen-pdf
114 doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
116 @DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
117 cd @DX_DOCDIR@/latex; \
118 rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
119 $(DX_PDFLATEX) refman.tex; \
120 $(DX_MAKEINDEX) refman.idx; \
121 $(DX_PDFLATEX) refman.tex; \
123 while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
124 refman.log > /dev/null 2>&1 \
125 && test $$countdown -gt 0; do \
126 $(DX_PDFLATEX) refman.tex; \
127 countdown=`expr $$countdown - 1`; \
129 mv refman.pdf ../@PACKAGE@.pdf
133 ## ------------------------------------------------- ##
134 ## Rules specific for LaTeX (shared for PS and PDF). ##
135 ## ------------------------------------------------- ##
139 DX_CLEAN_LATEX = @DX_DOCDIR@/latex
141 endif # DX_COND_latex
143 .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
145 .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
147 doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
149 doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
151 @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
153 $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
156 @DX_DOCDIR@/@PACKAGE@.tag \