blob: 093422f69f0cffbdeb741d89f45249e9ba03588e [file] [log] [blame]
Patrick Williamsc124f4f2015-09-15 14:41:29 -05001# This is a single Makefile to handle all generated Yocto Project documents,
2# which includes the BitBake User Manual and the Toaster User Manual.
3# The Makefile needs to live in the documents directory and all figures used
4# in any manuals must be .PNG files and live in the individual book's figures
5# directory as well as in the figures directory for the mega-manual.
6#
7# Some manuals are available as linked help through the Eclipse development
8# system. These manuals also include an "eclipse" sub-directory as part of
9# the make process.
10#
Brad Bishopd7bf8c12018-02-25 22:55:05 -050011# Note that the figures for the Yocto Project Development Tasks Manual
Patrick Williamsc124f4f2015-09-15 14:41:29 -050012# differ depending on the BRANCH being built.
13#
14# The Makefile has these targets:
15# all: If you leave off the target then "all" is implied.
16# You will generate HTML, eclipse help (if applicable),
17# and a tarball of files.
18#
19# pdf: generates a PDF version of a manual. Not valid for the
20# Quick Start or the mega-manual (single, large HTML file
21# comprised of all Yocto Project manuals).
22# html: generates an HTML version of a manual.
23# eclipse: generates an HTML version of a manual that can be used as
24# eclipse help (including necessary metadata files).
25# tarball: creates a tarball for the doc files.
26# validate: validates
27# publish: pushes generated files to the Yocto Project website
28# clean: removes files
29#
30# The Makefile can generate an HTML and PDF version of every document except the
31# Yocto Project Quick Start and the single, HTML mega-manual, which is comprised
32# of all the individual Yocto Project manuals. You can generate these two manuals
33# in HTML form only. The variable DOC indicates the folder name for a given manual.
34# The variable VER represents the distro version of the Yocto Release for which the
35# manuals are being generated. The variable BRANCH is used to indicate the
36# branch (edison or denzil) and is used only when DOC=dev-manual or
37# DOC=mega-manual. If you do not specify a BRANCH, the default branch used
38# will be for the latest Yocto Project release. If you build for either
39# edison or denzil, you must use BRANCH. You do not need to use BRANCH for
40# any release beyond denzil.
41#
42# To build a manual, you must invoke Makefile with the DOC argument. If you
43# are going to publish the manual, then you must invoke Makefile with both the
44# DOC and the VER argument. Furthermore, if you are building or publishing
Brad Bishopd7bf8c12018-02-25 22:55:05 -050045# the edison or denzil versions of the Yocto Project Development Tasks Manual or
Patrick Williamsc124f4f2015-09-15 14:41:29 -050046# the mega-manual, you must also use the BRANCH argument.
47#
48# Examples:
49#
50# make DOC=bsp-guide
Brad Bishop316dfdd2018-06-25 12:45:53 -040051# make html DOC=brief-yoctoprojectqs
Patrick Williamsc124f4f2015-09-15 14:41:29 -050052# make pdf DOC=ref-manual
53# make DOC=dev-manual BRANCH=edison
54# make DOC=mega-manual BRANCH=denzil
55#
56# The first example generates the HTML and Eclipse help versions of the BSP Guide.
57# The second example generates the HTML version only of the Quick Start. Note
58# that the Quick Start only has an HTML version available. So, the
Brad Bishop316dfdd2018-06-25 12:45:53 -040059# 'make DOC=brief-yoctoprojectqs' command would be equivalent. The third example
Patrick Williamsc124f4f2015-09-15 14:41:29 -050060# generates just the PDF version of the Yocto Project Reference Manual.
61# The fourth example generates the HTML 'edison' version and (if available)
Brad Bishopd7bf8c12018-02-25 22:55:05 -050062# the Eclipse help version of the YP Development Tasks Manual. The last example
Patrick Williamsc124f4f2015-09-15 14:41:29 -050063# generates the HTML version of the mega-manual and uses the 'denzil'
64# branch when choosing figures for the tarball of figures. Any example that does
65# not use the BRANCH argument builds the current version of the manual set.
66#
67# The publish target pushes the generated manuals to the Yocto Project
68# website. Unless you are a developer on the YP team, you will not succeed in
69# pushing manuals to this server. All files needed for the manual's HTML form are
70# pushed as well as applicable Eclipse versions.
71#
72# Examples:
73#
74# make publish DOC=bsp-guide VER=1.7
75# make publish DOC=adt-manual VER=1.6
76# make publish DOC=dev-manual VER=1.1.1 BRANCH=edison
77# make publish DOC=dev-manual VER=1.2 BRANCH=denzil
78#
79# The first example publishes the 1.7 version of both the PDF and HTML versions of
80# the BSP Guide. The second example publishes the 1.6 version of both the PDF and
81# HTML versions of the ADT Manual. The third example publishes the 1.1.1 version of
Brad Bishopd7bf8c12018-02-25 22:55:05 -050082# the PDF and HTML YP Development Tasks Manual for the 'edison' branch. The fourth
83# example publishes the 1.2 version of the PDF and HTML YP Development Tasks Manual
84# for the 'denzil' branch.
Patrick Williamsc124f4f2015-09-15 14:41:29 -050085#
86
Brad Bishop316dfdd2018-06-25 12:45:53 -040087ifeq ($(DOC),brief-yoctoprojectqs)
88XSLTOPTS = --stringparam html.stylesheet brief-yoctoprojectqs-style.css \
89 --stringparam chapter.autolabel 0 \
90 --stringparam section.autolabel 0 \
91 --stringparam section.label.includes.component.label 0 \
92 --xinclude
93ALLPREQ = html eclipse tarball
94TARFILES = brief-yoctoprojectqs-style.css brief-yoctoprojectqs.html figures/bypqs-title.png \
95 figures/yocto-project-transp.png
96MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
97FIGURES = figures
98STYLESHEET = $(DOC)/*.css
99
100endif
101
102ifeq ($(DOC),overview-manual)
103XSLTOPTS = --xinclude
104ALLPREQ = html eclipse tarball
105TARFILES = overview-manual-style.css overview-manual.html figures/overview-manual-title.png \
106 figures/git-workflow.png figures/source-repos.png figures/index-downloads.png \
107 figures/yp-download.png figures/YP-flow-diagram.png figures/key-dev-elements.png \
108 figures/poky-reference-distribution.png figures/cross-development-toolchains.png \
109 figures/user-configuration.png figures/layer-input.png figures/source-input.png \
110 figures/package-feeds.png figures/patching.png figures/source-fetching.png \
111 figures/configuration-compile-autoreconf.png figures/analysis-for-package-splitting.png \
112 figures/image-generation.png figures/sdk-generation.png figures/images.png \
113 figures/sdk.png \
114 eclipse
115MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
116FIGURES = figures
117STYLESHEET = $(DOC)/*.css
118
119endif
120
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500121ifeq ($(DOC),bsp-guide)
122XSLTOPTS = --xinclude
123ALLPREQ = html eclipse tarball
124TARFILES = bsp-style.css bsp-guide.html figures/bsp-title.png \
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500125 figures/bsp-dev-flow.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500126 eclipse
127MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
128FIGURES = figures
129STYLESHEET = $(DOC)/*.css
130
131endif
132
133ifeq ($(DOC),dev-manual)
134XSLTOPTS = --xinclude
135ALLPREQ = html eclipse tarball
136#
137# Note that the tarfile might produce the "Cannot stat: No such file or
138# directory" error message for .PNG files that are not present when building
139# a particular branch. The list of files is all-inclusive for all branches.
140# Note, if you don't provide a BRANCH option, it defaults to the latest stuff.
141# This would be appropriate for "master" branch.
142#
143
144 ifeq ($(BRANCH),edison)
145TARFILES = dev-style.css dev-manual.html \
146 figures/app-dev-flow.png figures/bsp-dev-flow.png \
147 figures/dev-title.png figures/git-workflow.png \
148 figures/index-downloads.png figures/kernel-dev-flow.png \
149 figures/kernel-example-repos-edison.png \
150 figures/kernel-overview-1.png figures/kernel-overview-2.png \
151 figures/kernel-overview-3-edison.png \
152 figures/source-repos.png figures/yp-download.png \
153 figures/wip.png
154 else ifeq ($(BRANCH),denzil)
155TARFILES = dev-style.css dev-manual.html \
156 figures/app-dev-flow.png figures/bsp-dev-flow.png \
157 figures/dev-title.png figures/git-workflow.png \
158 figures/index-downloads.png figures/kernel-dev-flow.png \
159 figures/kernel-example-repos-denzil.png \
160 figures/kernel-overview-1.png figures/kernel-overview-2.png \
161 figures/kernel-overview-3-denzil.png \
162 figures/source-repos.png figures/yp-download.png \
163 figures/wip.png
164 else
Brad Bishop316dfdd2018-06-25 12:45:53 -0400165TARFILES = dev-style.css dev-manual.html figures/buildhistory-web.png \
166 figures/dev-title.png figures/buildhistory.png \
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500167 figures/recipe-workflow.png figures/bitbake-build-flow.png \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800168 figures/multiconfig_files.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500169 eclipse
170 endif
171
172MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
173FIGURES = figures
174STYLESHEET = $(DOC)/*.css
175
176endif
177
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500178ifeq ($(DOC),mega-manual)
179XSLTOPTS = --stringparam html.stylesheet mega-style.css \
180 --stringparam chapter.autolabel 1 \
181 --stringparam section.autolabel 1 \
182 --stringparam section.label.includes.component.label 1 \
183 --xinclude
184ALLPREQ = html tarball
185
186 ifeq ($(BRANCH),edison)
187TARFILES = mega-manual.html mega-style.css figures/yocto-environment.png \
188 figures/building-an-image.png \
189 figures/using-a-pre-built-image.png \
190 figures/poky-title.png \
191 figures/adt-title.png figures/bsp-title.png \
192 figures/kernel-title.png figures/kernel-architecture-overview.png \
193 figures/app-dev-flow.png figures/bsp-dev-flow.png \
194 figures/dev-title.png figures/git-workflow.png \
195 figures/index-downloads.png figures/kernel-dev-flow.png \
196 figures/kernel-example-repos-edison.png \
197 figures/kernel-overview-1.png figures/kernel-overview-2.png \
198 figures/kernel-overview-3-edison.png \
199 figures/source-repos.png figures/yp-download.png \
200 figures/wip.png
201 else ifeq ($(BRANCH),denzil)
202TARFILES = mega-manual.html mega-style.css figures/yocto-environment.png \
203 figures/building-an-image.png \
204 figures/using-a-pre-built-image.png \
205 figures/poky-title.png \
206 figures/adt-title.png figures/bsp-title.png \
207 figures/kernel-title.png figures/kernel-architecture-overview.png \
208 figures/app-dev-flow.png figures/bsp-dev-flow.png \
209 figures/dev-title.png figures/git-workflow.png \
210 figures/index-downloads.png figures/kernel-dev-flow.png \
211 figures/kernel-example-repos-denzil.png \
212 figures/kernel-overview-1.png figures/kernel-overview-2.png \
213 figures/kernel-overview-3-denzil.png \
214 figures/source-repos.png figures/yp-download.png \
215 figures/wip.png
216 else
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500217TARFILES = mega-manual.html mega-style.css \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400218 figures/YP-flow-diagram.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500219 figures/using-a-pre-built-image.png \
220 figures/poky-title.png figures/buildhistory.png \
221 figures/buildhistory-web.png \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500222 figures/sdk-title.png figures/bsp-title.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500223 figures/kernel-dev-title.png figures/kernel-architecture-overview.png \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500224 figures/bsp-dev-flow.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500225 figures/dev-title.png \
226 figures/git-workflow.png figures/index-downloads.png \
227 figures/kernel-dev-flow.png \
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500228 figures/kernel-overview-2-generic.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500229 figures/source-repos.png figures/yp-download.png \
230 figures/profile-title.png figures/kernelshark-all.png \
231 figures/kernelshark-choose-events.png \
232 figures/kernelshark-i915-display.png \
233 figures/kernelshark-output-display.png figures/lttngmain0.png \
234 figures/oprofileui-busybox.png figures/oprofileui-copy-to-user.png \
235 figures/oprofileui-downloading.png figures/oprofileui-processes.png \
236 figures/perf-probe-do_fork-profile.png \
237 figures/perf-report-cycles-u.png \
238 figures/perf-systemwide.png figures/perf-systemwide-libc.png \
239 figures/perf-wget-busybox-annotate-menu.png \
240 figures/perf-wget-busybox-annotate-udhcpc.png \
241 figures/perf-wget-busybox-debuginfo.png \
242 figures/perf-wget-busybox-dso-zoom.png \
243 figures/perf-wget-busybox-dso-zoom-menu.png \
244 figures/perf-wget-busybox-expanded-stripped.png \
245 figures/perf-wget-flat-stripped.png \
246 figures/perf-wget-g-copy-from-user-expanded-stripped.png \
247 figures/perf-wget-g-copy-to-user-expanded-debuginfo.png \
248 figures/perf-wget-g-copy-to-user-expanded-stripped.png \
249 figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png \
250 figures/pybootchartgui-linux-yocto.png \
251 figures/pychart-linux-yocto-rpm.png \
252 figures/pychart-linux-yocto-rpm-nostrip.png \
253 figures/sched-wakeup-profile.png figures/sysprof-callers.png \
254 figures/sysprof-copy-from-user.png figures/sysprof-copy-to-user.png \
255 figures/cross-development-toolchains.png \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400256 figures/user-configuration.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500257 figures/source-input.png figures/package-feeds.png \
258 figures/layer-input.png figures/images.png figures/sdk.png \
259 figures/source-fetching.png figures/patching.png \
260 figures/configuration-compile-autoreconf.png \
261 figures/analysis-for-package-splitting.png \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400262 figures/image-generation.png figures/key-dev-elements.png\
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500263 figures/sdk-generation.png figures/recipe-workflow.png \
264 figures/build-workspace-directory.png figures/mega-title.png \
Brad Bishop1a4b7ee2018-12-16 17:11:34 -0800265 figures/toaster-title.png figures/hosted-service.png figures/multiconfig_files.png \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400266 figures/simple-configuration.png figures/poky-reference-distribution.png \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500267 figures/compatible-layers.png figures/import-layer.png figures/new-project.png \
268 figures/sdk-environment.png figures/sdk-installed-standard-sdk-directory.png \
269 figures/sdk-devtool-add-flow.png figures/sdk-installed-extensible-sdk-directory.png \
Patrick Williamsc0f7c042017-02-23 20:41:17 -0600270 figures/sdk-devtool-modify-flow.png figures/sdk-eclipse-dev-flow.png \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400271 figures/sdk-devtool-upgrade-flow.png figures/bitbake-build-flow.png figures/bypqs-title.png \
272 figures/overview-manual-title.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.png
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500273 endif
274
275MANUALS = $(DOC)/$(DOC).html
276FIGURES = figures
277STYLESHEET = $(DOC)/*.css
278
279endif
280
281ifeq ($(DOC),ref-manual)
282XSLTOPTS = --xinclude
283ALLPREQ = html eclipse tarball
Brad Bishop316dfdd2018-06-25 12:45:53 -0400284TARFILES = ref-manual.html ref-style.css figures/poky-title.png \
285 figures/build-workspace-directory.png \
286 eclipse
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500287MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
288FIGURES = figures
289STYLESHEET = $(DOC)/*.css
290endif
291
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500292ifeq ($(DOC),sdk-manual)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500293XSLTOPTS = --xinclude
294ALLPREQ = html eclipse tarball
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500295TARFILES = sdk-manual.html sdk-style.css figures/sdk-title.png \
296 figures/sdk-environment.png figures/sdk-installed-standard-sdk-directory.png \
297 figures/sdk-installed-extensible-sdk-directory.png figures/sdk-devtool-add-flow.png \
298 figures/sdk-devtool-modify-flow.png figures/sdk-eclipse-dev-flow.png \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400299 figures/sdk-devtool-upgrade-flow.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500300 eclipse
301MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
302FIGURES = figures
303STYLESHEET = $(DOC)/*.css
304endif
305
306ifeq ($(DOC),profile-manual)
307XSLTOPTS = --xinclude
308ALLPREQ = html eclipse tarball
309TARFILES = profile-manual.html profile-manual-style.css \
310 figures/profile-title.png figures/kernelshark-all.png \
311 figures/kernelshark-choose-events.png \
312 figures/kernelshark-i915-display.png \
313 figures/kernelshark-output-display.png figures/lttngmain0.png \
314 figures/oprofileui-busybox.png figures/oprofileui-copy-to-user.png \
315 figures/oprofileui-downloading.png figures/oprofileui-processes.png \
316 figures/perf-probe-do_fork-profile.png \
317 figures/perf-report-cycles-u.png \
318 figures/perf-systemwide.png figures/perf-systemwide-libc.png \
319 figures/perf-wget-busybox-annotate-menu.png \
320 figures/perf-wget-busybox-annotate-udhcpc.png \
321 figures/perf-wget-busybox-debuginfo.png \
322 figures/perf-wget-busybox-dso-zoom.png \
323 figures/perf-wget-busybox-dso-zoom-menu.png \
324 figures/perf-wget-busybox-expanded-stripped.png \
325 figures/perf-wget-flat-stripped.png \
326 figures/perf-wget-g-copy-from-user-expanded-stripped.png \
327 figures/perf-wget-g-copy-to-user-expanded-debuginfo.png \
328 figures/perf-wget-g-copy-to-user-expanded-stripped.png \
329 figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png \
330 figures/pybootchartgui-linux-yocto.png \
331 figures/pychart-linux-yocto-rpm.png \
332 figures/pychart-linux-yocto-rpm-nostrip.png \
333 figures/sched-wakeup-profile.png figures/sysprof-callers.png \
334 figures/sysprof-copy-from-user.png figures/sysprof-copy-to-user.png \
335 eclipse
336MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
337FIGURES = figures
338STYLESHEET = $(DOC)/*.css
339endif
340
341ifeq ($(DOC),kernel-dev)
342XSLTOPTS = --xinclude
343ALLPREQ = html eclipse tarball
344TARFILES = kernel-dev.html kernel-dev-style.css \
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500345 figures/kernel-dev-title.png figures/kernel-overview-2-generic.png \
346 figures/kernel-architecture-overview.png figures/kernel-dev-flow.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500347 eclipse
348MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
349FIGURES = figures
350STYLESHEET = $(DOC)/*.css
351endif
352
353ifeq ($(DOC),toaster-manual)
354XSLTOPTS = --xinclude
355ALLPREQ = html tarball
356TARFILES = toaster-manual.html toaster-manual-style.css \
357 figures/toaster-title.png figures/simple-configuration.png \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500358 figures/hosted-service.png \
359 figures/compatible-layers.png figures/import-layer.png figures/new-project.png
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500360MANUALS = $(DOC)/$(DOC).html
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500361FIGURES = figures
362STYLESHEET = $(DOC)/*.css
363endif
364
365
366##
367# These URI should be rewritten by your distribution's xml catalog to
368# match your locally installed XSL stylesheets.
369XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/1.76.1
370XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl
371
372all: $(ALLPREQ)
373
374pdf:
Brad Bishop316dfdd2018-06-25 12:45:53 -0400375ifeq ($(DOC),brief-yoctoprojectqs)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500376 @echo " "
Brad Bishop316dfdd2018-06-25 12:45:53 -0400377 @echo "ERROR: You cannot generate a PDF file for brief-yoctoprojectqs."
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500378 @echo " "
379
380else ifeq ($(DOC),mega-manual)
381 @echo " "
382 @echo "ERROR: You cannot generate a mega-manual PDF file."
383 @echo " "
384
385else
386
387 cd $(DOC); ../tools/poky-docbook-to-pdf $(DOC).xml ../template; cd ..
388endif
389
390html:
391ifeq ($(DOC),mega-manual)
392# See http://www.sagehill.net/docbookxsl/HtmlOutput.html
393 @echo " "
394 @echo "******** Building "$(DOC)
395 @echo " "
396 cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd ..
397 @echo " "
398 @echo "******** Using mega-manual.sed to process external links"
399 @echo " "
400 cd $(DOC); sed -f ../tools/mega-manual.sed < mega-manual.html > mega-output.html; cd ..
401 @echo " "
402 @echo "******** Cleaning up transient file mega-output.html"
403 @echo " "
404 cd $(DOC); rm mega-manual.html; mv mega-output.html mega-manual.html; cd ..
405else
406# See http://www.sagehill.net/docbookxsl/HtmlOutput.html
407 @echo " "
408 @echo "******** Building "$(DOC)
409 @echo " "
410 cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd ..
411endif
412
413
414eclipse: BASE_DIR = html/$(DOC)/
415
416eclipse: eclipse-generate eclipse-resolve-links
417
418.PHONY : eclipse-generate eclipse-resolve-links
419
420eclipse-generate:
Brad Bishop316dfdd2018-06-25 12:45:53 -0400421ifeq ($(filter $(DOC), overview-manual sdk-manual bsp-guide dev-manual kernel-dev profile-manual ref-manual brief-yoctoprojectqs),)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500422 @echo " "
423 @echo "ERROR: You can only create eclipse documentation"
424 @echo " of the following documentation parts:"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400425 @echo " - overview-manual"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500426 @echo " - sdk-manual"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500427 @echo " - bsp-guide"
428 @echo " - dev-manual"
429 @echo " - kernel-dev"
430 @echo " - profile-manual"
431 @echo " - ref-manual"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400432 @echo " - brief-yoctoprojectqs"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500433 @echo " "
434else
435 @echo " "
436 @echo "******** Building eclipse help of "$(DOC)
437 @echo " "
438 cd $(DOC) && \
439 xsltproc $(XSLTOPTS) \
440 --stringparam base.dir '$(BASE_DIR)' \
441 -o eclipse/$(DOC).html \
442 $(DOC)-eclipse-customization.xsl $(DOC).xml && \
443 mv eclipse/toc.xml eclipse/$(DOC)-toc.xml && \
444 cp -rf $(FIGURES) eclipse/$(BASE_DIR) && \
445 cd ..;
446
447 $(call modify-eclipse)
448endif
449
450eclipse-resolve-links:
451 @echo " "
452 @echo "******** Using eclipse-help.sed to process external links"
453 @echo " "
454 $(foreach FILE, \
455 $(wildcard $(DOC)/eclipse/html/$(DOC)/*.html), \
456 $(shell sed -i -f tools/eclipse-help.sed $(FILE)))
457
458tarball: html
459 @echo " "
460 @echo "******** Creating Tarball of document files"
461 @echo " "
462 cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd ..
463
464validate:
465 cd $(DOC); xmllint --postvalid --xinclude --noout $(DOC).xml; cd ..
466
467
468publish:
469 @if test -f $(DOC)/$(DOC).html; \
470 then \
471 echo " "; \
472 echo "******** Publishing "$(DOC)".html"; \
473 echo " "; \
474 scp -r $(MANUALS) $(STYLESHEET) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \
475 cd $(DOC); scp -r $(FIGURES) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \
476 else \
477 echo " "; \
478 echo $(DOC)".html missing. Generate the file first then try again."; \
479 echo " "; \
480 fi
481
482clean:
483 rm -rf $(MANUALS); rm $(DOC)/$(DOC).tgz;