added comments on windows version to README
[profile/ivi/common-api-dbus-runtime.git] / aminclude.am
1 #   Copyright (c) 2009 Oren Ben-Kiki <oren@ben-kiki.org>
2 #
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
6 #   warranty.
7 #
8 # ===========================================================================
9 #      http://www.gnu.org/software/autoconf-archive/ax_prog_doxygen.html
10 # ===========================================================================
11 #
12
13 ## --------------------------------- ##
14 ## Format-independent Doxygen rules. ##
15 ## --------------------------------- ##
16
17 if DX_COND_doc
18
19 ## ------------------------------- ##
20 ## Rules specific for HTML output. ##
21 ## ------------------------------- ##
22
23 if DX_COND_html
24
25 DX_CLEAN_HTML = @DX_DOCDIR@/html
26
27 endif # DX_COND_html
28
29 ## ------------------------------ ##
30 ## Rules specific for CHM output. ##
31 ## ------------------------------ ##
32
33 if DX_COND_chm
34
35 DX_CLEAN_CHM = @DX_DOCDIR@/chm
36
37 if DX_COND_chi
38
39 DX_CLEAN_CHI = @DX_DOCDIR@/@PACKAGE@.chi
40
41 endif # DX_COND_chi
42
43 endif # DX_COND_chm
44
45 ## ------------------------------ ##
46 ## Rules specific for MAN output. ##
47 ## ------------------------------ ##
48
49 if DX_COND_man
50
51 DX_CLEAN_MAN = @DX_DOCDIR@/man
52
53 endif # DX_COND_man
54
55 ## ------------------------------ ##
56 ## Rules specific for RTF output. ##
57 ## ------------------------------ ##
58
59 if DX_COND_rtf
60
61 DX_CLEAN_RTF = @DX_DOCDIR@/rtf
62
63 endif # DX_COND_rtf
64
65 ## ------------------------------ ##
66 ## Rules specific for XML output. ##
67 ## ------------------------------ ##
68
69 if DX_COND_xml
70
71 DX_CLEAN_XML = @DX_DOCDIR@/xml
72
73 endif # DX_COND_xml
74
75 ## ----------------------------- ##
76 ## Rules specific for PS output. ##
77 ## ----------------------------- ##
78
79 if DX_COND_ps
80
81 DX_CLEAN_PS = @DX_DOCDIR@/@PACKAGE@.ps
82
83 DX_PS_GOAL = doxygen-ps
84
85 doxygen-ps: @DX_DOCDIR@/@PACKAGE@.ps
86
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; \
93     countdown=5; \
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`; \
99         done; \
100         $(DX_DVIPS) -o ../@PACKAGE@.ps refman.dvi
101
102 endif # DX_COND_ps
103
104 ## ------------------------------ ##
105 ## Rules specific for PDF output. ##
106 ## ------------------------------ ##
107
108 if DX_COND_pdf
109
110 DX_CLEAN_PDF = @DX_DOCDIR@/@PACKAGE@.pdf
111
112 DX_PDF_GOAL = doxygen-pdf
113
114 doxygen-pdf: @DX_DOCDIR@/@PACKAGE@.pdf
115
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; \
122         countdown=5; \
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`; \
128         done; \
129         mv refman.pdf ../@PACKAGE@.pdf
130
131 endif # DX_COND_pdf
132
133 ## ------------------------------------------------- ##
134 ## Rules specific for LaTeX (shared for PS and PDF). ##
135 ## ------------------------------------------------- ##
136
137 if DX_COND_latex
138
139 DX_CLEAN_LATEX = @DX_DOCDIR@/latex
140
141 endif # DX_COND_latex
142
143 .PHONY: doxygen-run doxygen-doc $(DX_PS_GOAL) $(DX_PDF_GOAL)
144
145 .INTERMEDIATE: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
146
147 doxygen-run: @DX_DOCDIR@/@PACKAGE@.tag
148
149 doxygen-doc: doxygen-run $(DX_PS_GOAL) $(DX_PDF_GOAL)
150
151 @DX_DOCDIR@/@PACKAGE@.tag: $(DX_CONFIG) $(pkginclude_HEADERS)
152         rm -rf @DX_DOCDIR@
153         $(DX_ENV) $(DX_DOXYGEN) $(srcdir)/$(DX_CONFIG)
154
155 DX_CLEANFILES = \
156     @DX_DOCDIR@/@PACKAGE@.tag \
157     -r \
158     $(DX_CLEAN_HTML) \
159     $(DX_CLEAN_CHM) \
160     $(DX_CLEAN_CHI) \
161     $(DX_CLEAN_MAN) \
162     $(DX_CLEAN_RTF) \
163     $(DX_CLEAN_XML) \
164     $(DX_CLEAN_PS) \
165     $(DX_CLEAN_PDF) \
166     $(DX_CLEAN_LATEX)
167
168 endif # DX_COND_doc