blob: 1480e14eac6d29818d290818a2da4ef6f45f003c [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 \
Brad Bishop19323692019-04-05 15:28:33 -0400272 figures/overview-manual-title.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.png \
273 figures/bb_multiconfig_files.png figures/bitbake-title.png
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500274 endif
275
276MANUALS = $(DOC)/$(DOC).html
277FIGURES = figures
278STYLESHEET = $(DOC)/*.css
279
280endif
281
282ifeq ($(DOC),ref-manual)
283XSLTOPTS = --xinclude
284ALLPREQ = html eclipse tarball
Brad Bishop316dfdd2018-06-25 12:45:53 -0400285TARFILES = ref-manual.html ref-style.css figures/poky-title.png \
286 figures/build-workspace-directory.png \
287 eclipse
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500288MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
289FIGURES = figures
290STYLESHEET = $(DOC)/*.css
291endif
292
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500293ifeq ($(DOC),sdk-manual)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500294XSLTOPTS = --xinclude
295ALLPREQ = html eclipse tarball
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500296TARFILES = sdk-manual.html sdk-style.css figures/sdk-title.png \
297 figures/sdk-environment.png figures/sdk-installed-standard-sdk-directory.png \
298 figures/sdk-installed-extensible-sdk-directory.png figures/sdk-devtool-add-flow.png \
299 figures/sdk-devtool-modify-flow.png figures/sdk-eclipse-dev-flow.png \
Brad Bishop316dfdd2018-06-25 12:45:53 -0400300 figures/sdk-devtool-upgrade-flow.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500301 eclipse
302MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
303FIGURES = figures
304STYLESHEET = $(DOC)/*.css
305endif
306
307ifeq ($(DOC),profile-manual)
308XSLTOPTS = --xinclude
309ALLPREQ = html eclipse tarball
310TARFILES = profile-manual.html profile-manual-style.css \
311 figures/profile-title.png figures/kernelshark-all.png \
312 figures/kernelshark-choose-events.png \
313 figures/kernelshark-i915-display.png \
314 figures/kernelshark-output-display.png figures/lttngmain0.png \
315 figures/oprofileui-busybox.png figures/oprofileui-copy-to-user.png \
316 figures/oprofileui-downloading.png figures/oprofileui-processes.png \
317 figures/perf-probe-do_fork-profile.png \
318 figures/perf-report-cycles-u.png \
319 figures/perf-systemwide.png figures/perf-systemwide-libc.png \
320 figures/perf-wget-busybox-annotate-menu.png \
321 figures/perf-wget-busybox-annotate-udhcpc.png \
322 figures/perf-wget-busybox-debuginfo.png \
323 figures/perf-wget-busybox-dso-zoom.png \
324 figures/perf-wget-busybox-dso-zoom-menu.png \
325 figures/perf-wget-busybox-expanded-stripped.png \
326 figures/perf-wget-flat-stripped.png \
327 figures/perf-wget-g-copy-from-user-expanded-stripped.png \
328 figures/perf-wget-g-copy-to-user-expanded-debuginfo.png \
329 figures/perf-wget-g-copy-to-user-expanded-stripped.png \
330 figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png \
331 figures/pybootchartgui-linux-yocto.png \
332 figures/pychart-linux-yocto-rpm.png \
333 figures/pychart-linux-yocto-rpm-nostrip.png \
334 figures/sched-wakeup-profile.png figures/sysprof-callers.png \
335 figures/sysprof-copy-from-user.png figures/sysprof-copy-to-user.png \
336 eclipse
337MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
338FIGURES = figures
339STYLESHEET = $(DOC)/*.css
340endif
341
342ifeq ($(DOC),kernel-dev)
343XSLTOPTS = --xinclude
344ALLPREQ = html eclipse tarball
345TARFILES = kernel-dev.html kernel-dev-style.css \
Brad Bishopd7bf8c12018-02-25 22:55:05 -0500346 figures/kernel-dev-title.png figures/kernel-overview-2-generic.png \
347 figures/kernel-architecture-overview.png figures/kernel-dev-flow.png \
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500348 eclipse
349MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
350FIGURES = figures
351STYLESHEET = $(DOC)/*.css
352endif
353
354ifeq ($(DOC),toaster-manual)
355XSLTOPTS = --xinclude
356ALLPREQ = html tarball
357TARFILES = toaster-manual.html toaster-manual-style.css \
358 figures/toaster-title.png figures/simple-configuration.png \
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500359 figures/hosted-service.png \
360 figures/compatible-layers.png figures/import-layer.png figures/new-project.png
Patrick Williamsf1e5d692016-03-30 15:21:19 -0500361MANUALS = $(DOC)/$(DOC).html
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500362FIGURES = figures
363STYLESHEET = $(DOC)/*.css
364endif
365
366
367##
368# These URI should be rewritten by your distribution's xml catalog to
369# match your locally installed XSL stylesheets.
370XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/1.76.1
371XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl
372
373all: $(ALLPREQ)
374
375pdf:
Brad Bishop316dfdd2018-06-25 12:45:53 -0400376ifeq ($(DOC),brief-yoctoprojectqs)
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500377 @echo " "
Brad Bishop316dfdd2018-06-25 12:45:53 -0400378 @echo "ERROR: You cannot generate a PDF file for brief-yoctoprojectqs."
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500379 @echo " "
380
381else ifeq ($(DOC),mega-manual)
382 @echo " "
383 @echo "ERROR: You cannot generate a mega-manual PDF file."
384 @echo " "
385
386else
387
388 cd $(DOC); ../tools/poky-docbook-to-pdf $(DOC).xml ../template; cd ..
389endif
390
391html:
392ifeq ($(DOC),mega-manual)
393# See http://www.sagehill.net/docbookxsl/HtmlOutput.html
394 @echo " "
395 @echo "******** Building "$(DOC)
396 @echo " "
397 cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd ..
398 @echo " "
399 @echo "******** Using mega-manual.sed to process external links"
400 @echo " "
401 cd $(DOC); sed -f ../tools/mega-manual.sed < mega-manual.html > mega-output.html; cd ..
402 @echo " "
403 @echo "******** Cleaning up transient file mega-output.html"
404 @echo " "
405 cd $(DOC); rm mega-manual.html; mv mega-output.html mega-manual.html; cd ..
406else
407# See http://www.sagehill.net/docbookxsl/HtmlOutput.html
408 @echo " "
409 @echo "******** Building "$(DOC)
410 @echo " "
411 cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd ..
412endif
413
414
415eclipse: BASE_DIR = html/$(DOC)/
416
417eclipse: eclipse-generate eclipse-resolve-links
418
419.PHONY : eclipse-generate eclipse-resolve-links
420
421eclipse-generate:
Brad Bishop316dfdd2018-06-25 12:45:53 -0400422ifeq ($(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 -0500423 @echo " "
424 @echo "ERROR: You can only create eclipse documentation"
425 @echo " of the following documentation parts:"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400426 @echo " - overview-manual"
Patrick Williamsd8c66bc2016-06-20 12:57:21 -0500427 @echo " - sdk-manual"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500428 @echo " - bsp-guide"
429 @echo " - dev-manual"
430 @echo " - kernel-dev"
431 @echo " - profile-manual"
432 @echo " - ref-manual"
Brad Bishop316dfdd2018-06-25 12:45:53 -0400433 @echo " - brief-yoctoprojectqs"
Patrick Williamsc124f4f2015-09-15 14:41:29 -0500434 @echo " "
435else
436 @echo " "
437 @echo "******** Building eclipse help of "$(DOC)
438 @echo " "
439 cd $(DOC) && \
440 xsltproc $(XSLTOPTS) \
441 --stringparam base.dir '$(BASE_DIR)' \
442 -o eclipse/$(DOC).html \
443 $(DOC)-eclipse-customization.xsl $(DOC).xml && \
444 mv eclipse/toc.xml eclipse/$(DOC)-toc.xml && \
445 cp -rf $(FIGURES) eclipse/$(BASE_DIR) && \
446 cd ..;
447
448 $(call modify-eclipse)
449endif
450
451eclipse-resolve-links:
452 @echo " "
453 @echo "******** Using eclipse-help.sed to process external links"
454 @echo " "
455 $(foreach FILE, \
456 $(wildcard $(DOC)/eclipse/html/$(DOC)/*.html), \
457 $(shell sed -i -f tools/eclipse-help.sed $(FILE)))
458
459tarball: html
460 @echo " "
461 @echo "******** Creating Tarball of document files"
462 @echo " "
463 cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd ..
464
465validate:
466 cd $(DOC); xmllint --postvalid --xinclude --noout $(DOC).xml; cd ..
467
468
469publish:
470 @if test -f $(DOC)/$(DOC).html; \
471 then \
472 echo " "; \
473 echo "******** Publishing "$(DOC)".html"; \
474 echo " "; \
475 scp -r $(MANUALS) $(STYLESHEET) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \
476 cd $(DOC); scp -r $(FIGURES) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \
477 else \
478 echo " "; \
479 echo $(DOC)".html missing. Generate the file first then try again."; \
480 echo " "; \
481 fi
482
483clean:
484 rm -rf $(MANUALS); rm $(DOC)/$(DOC).tgz;