doxygen.am revision 9888:68d6b600d51f
1## --------------------------------- ##
2## Format-independent Doxygen rules. ##
3## --------------------------------- ##
4if DX_COND_doc
5## ------------------------------- ##
6## Rules specific for HTML output. ##
7## ------------------------------- ##
8if DX_COND_html
9DX_CLEAN_HTML = @DX_DOCDIR@/html
10endif DX_COND_html
11## ------------------------------ ##
12## Rules specific for CHM output. ##
13## ------------------------------ ##
14if DX_COND_chm
15DX_CLEAN_CHM = @DX_DOCDIR@/chm
16if DX_COND_chi
17DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
18endif DX_COND_chi
19endif DX_COND_chm
20## ------------------------------ ##
21## Rules specific for MAN output. ##
22## ------------------------------ ##
23if DX_COND_man
24DX_CLEAN_MAN = @DX_DOCDIR@/man
25endif DX_COND_man
26## ------------------------------ ##
27## Rules specific for RTF output. ##
28## ------------------------------ ##
29if DX_COND_rtf
30DX_CLEAN_RTF = @DX_DOCDIR@/rtf
31endif DX_COND_rtf
32## ------------------------------ ##
33## Rules specific for XML output. ##
34## ------------------------------ ##
35if DX_COND_xml
36DX_CLEAN_XML = @DX_DOCDIR@/xml
37endif DX_COND_xml
38## ----------------------------- ##
39## Rules specific for PS output. ##
40## ----------------------------- ##
41if DX_COND_ps
42DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
43DX_PS_GOAL = doxygen-ps
44doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
45@DX_DOCDIR@/@PACKAGE@.ps: @DX_DOCDIR@/@PACKAGE@.tag
46	cd @DX_DOCDIR@/latex; \
47	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
48	$(DX_LATEX) refman.tex; \
49	$(MAKEINDEX_PATH) refman.idx; \
50	$(DX_LATEX) refman.tex; \
51	countdown=5; \
52	while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
53		refman.log > /dev/null 2>&1 && test $$countdown -gt 0; do \
54		$(DX_LATEX) refman.tex; \
55		countdown=`expr $$countdown - 1`; \
56	done; \
57	$(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
58endif DX_COND_ps
59## ------------------------------ ##
60## Rules specific for PDF output. ##
61## ------------------------------ ##
62if DX_COND_pdf
63DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
64DX_PDF_GOAL = doxygen-pdf
65doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
66@DX_DOCDIR@/@PACKAGE@.pdf: @DX_DOCDIR@/@PACKAGE@.tag
67	cd @DX_DOCDIR@/latex; \
68	rm -f *.aux *.toc *.idx *.ind *.ilg *.log *.out; \
69	$(DX_PDFLATEX) refman.tex; \
70	$(DX_MAKEINDEX) refman.idx; \
71	$(DX_PDFLATEX) refman.tex; \
72	countdown=5; \
73	while $(DX_EGREP) 'Rerun (LaTeX|to get cross-references right)' \
74		refman.log > /dev/null 2>&1 && test $$countdown -gt 0; do \
75		$(DX_PDFLATEX) refman.tex; \
76		countdown=`expr $$countdown - 1`; \
77	done; \
78	mv refman.pdf ../@PACKAGE@.pdf
79endif DX_COND_pdf
80## ------------------------------------------------- ##
81## Rules specific for LaTeX (shared for PS and PDF). ##
82## ------------------------------------------------- ##
83if DX_COND_latex
84DX_CLEAN_LATEX = @DX_DOCDIR@/latex
85endif DX_COND_latex
86.PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
87.INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
88doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
89doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
90@DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
91	rm -rf @DX_DOCDIR@
92	$(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
93DX_CLEANFILES = \
94    @DX_DOCDIR@/@PACKAGE@.tag \
95    -r \
96    $(DX_CLEAN_HTML) \
97    $(DX_CLEAN_CHM) \
98    $(DX_CLEAN_CHI) \
99    $(DX_CLEAN_MAN) \
100    $(DX_CLEAN_RTF) \
101    $(DX_CLEAN_XML) \
102    $(DX_CLEAN_PS) \
103    $(DX_CLEAN_PDF) \
104    $(DX_CLEAN_LATEX)
105endif DX_COND_doc
106