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