|
126 | 126 | Build Target |
127 | 127 | ************ --> |
128 | 128 |
|
129 | | - <target name="build" depends="doc, jar" |
130 | | - description="Shortcut for 'doc jar'"> |
| 129 | + <target name="build" depends="doc-html, jar" |
| 130 | + description="Shortcut for 'doc-html jar'"> |
131 | 131 | </target> |
132 | 132 |
|
133 | 133 |
|
134 | 134 | <!-- ********************* |
135 | 135 | Documentation Targets |
136 | 136 | ********************* --> |
137 | 137 |
|
138 | | - <target name="doc" depends="doc-user, doc-developer, doc-quickstart" |
139 | | - description="Generate all documentation"> |
| 138 | + <target name="doc" depends="doc-html doc-pdf" |
| 139 | + description="Shortcut for 'doc-html doc-pdf'"> |
140 | 140 | </target> |
141 | 141 |
|
142 | | - <target name="doc-user"> |
| 142 | + |
| 143 | + <target name="doc-html" description="Generate all html documentation"> |
143 | 144 | <echo message="Creating user documentation" /> |
144 | 145 | <antcall target="run-docbook2html" inheritall="false"> |
145 | 146 | <param name="docbook-dir" value="user" /> |
146 | 147 | <param name="docbook-srcfile" value="userdoc.docbook" /> |
147 | 148 | </antcall> |
148 | | - <antcall target="run-docbook2pdf" inheritall="false"> |
149 | | - <param name="docbook-dir" value="user" /> |
150 | | - <param name="docbook-srcfile" value="userdoc.docbook" /> |
151 | | - </antcall> |
152 | | - </target> |
153 | | - |
154 | | - <target name="doc-quickstart"> |
| 149 | + |
155 | 150 | <echo message="Creating quickstart documentation" /> |
156 | 151 | <antcall target="run-docbook2html" inheritall="false"> |
157 | 152 | <param name="docbook-dir" value="quickstart" /> |
158 | 153 | <param name="docbook-srcfile" value="quickstart.docbook" /> |
159 | 154 | </antcall> |
160 | | - <antcall target="run-docbook2pdf" inheritall="false"> |
161 | | - <param name="docbook-dir" value="quickstart" /> |
162 | | - <param name="docbook-srcfile" value="quickstart.docbook" /> |
163 | | - </antcall> |
164 | | - </target> |
165 | 155 |
|
166 | | - <target name="doc-developer"> |
167 | 156 | <echo message="Creating developer documentation" /> |
168 | 157 | <antcall target="run-docbook2html" inheritall="false"> |
169 | 158 | <param name="docbook-dir" value="developer" /> |
170 | 159 | <param name="docbook-srcfile" value="devdoc.docbook" /> |
171 | 160 | </antcall> |
| 161 | + </target> |
| 162 | + |
| 163 | + |
| 164 | + <target name="doc-pdf" description="Generate all pdf documentation"> |
| 165 | + <echo message="Creating user documentation" /> |
| 166 | + <antcall target="run-docbook2pdf" inheritall="false"> |
| 167 | + <param name="docbook-dir" value="user" /> |
| 168 | + <param name="docbook-srcfile" value="userdoc.docbook" /> |
| 169 | + </antcall> |
| 170 | + |
| 171 | + <echo message="Creating quickstart documentation" /> |
| 172 | + <antcall target="run-docbook2pdf" inheritall="false"> |
| 173 | + <param name="docbook-dir" value="quickstart" /> |
| 174 | + <param name="docbook-srcfile" value="quickstart.docbook" /> |
| 175 | + </antcall> |
| 176 | + |
| 177 | + <echo message="Creating developer documentation" /> |
172 | 178 | <antcall target="run-docbook2pdf" inheritall="false"> |
173 | 179 | <param name="docbook-dir" value="developer" /> |
174 | 180 | <param name="docbook-srcfile" value="devdoc.docbook" /> |
175 | 181 | </antcall> |
176 | 182 | </target> |
177 | 183 |
|
| 184 | + |
178 | 185 | <target name="run-docbook2html" depends="assert-docbook2html-present"> |
179 | 186 | <mkdir dir="docs/${docbook-dir}" /> |
180 | 187 | <apply executable="docbook2html" failonerror="yes" type="file"> |
|
212 | 219 | Jar Targets |
213 | 220 | *********** --> |
214 | 221 |
|
215 | | - <target name="jar" depends="doc, resolve-version-tag" |
216 | | - description="Create the jar file with all docs (generating docs first)"> |
| 222 | + <target name="jar" depends="doc-html, resolve-version-tag" |
| 223 | + description="Create the jar file with distributed docs (generating html docs first)"> |
217 | 224 | <jar jarfile="${jar-filename}"> |
218 | 225 | <manifest> |
219 | 226 | <attribute name="Built-By" value="${user.name}" /> |
|
0 commit comments