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