Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 1 | # 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 11 | # Note that the figures for the Yocto Project Development Tasks Manual |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 12 | # 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 45 | # the edison or denzil versions of the Yocto Project Development Tasks Manual or |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 46 | # the mega-manual, you must also use the BRANCH argument. |
| 47 | # |
| 48 | # Examples: |
| 49 | # |
| 50 | # make DOC=bsp-guide |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 51 | # make html DOC=brief-yoctoprojectqs |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 52 | # 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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 59 | # 'make DOC=brief-yoctoprojectqs' command would be equivalent. The third example |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 60 | # generates just the PDF version of the Yocto Project Reference Manual. |
| 61 | # The fourth example generates the HTML 'edison' version and (if available) |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 62 | # the Eclipse help version of the YP Development Tasks Manual. The last example |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 63 | # 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 82 | # 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 85 | # |
| 86 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 87 | ifeq ($(DOC),brief-yoctoprojectqs) |
| 88 | XSLTOPTS = --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 |
| 93 | ALLPREQ = html eclipse tarball |
| 94 | TARFILES = brief-yoctoprojectqs-style.css brief-yoctoprojectqs.html figures/bypqs-title.png \ |
| 95 | figures/yocto-project-transp.png |
| 96 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 97 | FIGURES = figures |
| 98 | STYLESHEET = $(DOC)/*.css |
| 99 | |
| 100 | endif |
| 101 | |
| 102 | ifeq ($(DOC),overview-manual) |
| 103 | XSLTOPTS = --xinclude |
| 104 | ALLPREQ = html eclipse tarball |
| 105 | TARFILES = 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 |
| 115 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 116 | FIGURES = figures |
| 117 | STYLESHEET = $(DOC)/*.css |
| 118 | |
| 119 | endif |
| 120 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 121 | ifeq ($(DOC),bsp-guide) |
| 122 | XSLTOPTS = --xinclude |
| 123 | ALLPREQ = html eclipse tarball |
| 124 | TARFILES = bsp-style.css bsp-guide.html figures/bsp-title.png \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 125 | figures/bsp-dev-flow.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 126 | eclipse |
| 127 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 128 | FIGURES = figures |
| 129 | STYLESHEET = $(DOC)/*.css |
| 130 | |
| 131 | endif |
| 132 | |
| 133 | ifeq ($(DOC),dev-manual) |
| 134 | XSLTOPTS = --xinclude |
| 135 | ALLPREQ = 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) |
| 145 | TARFILES = 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) |
| 155 | TARFILES = 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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 165 | TARFILES = dev-style.css dev-manual.html figures/buildhistory-web.png \ |
| 166 | figures/dev-title.png figures/buildhistory.png \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 167 | figures/recipe-workflow.png figures/bitbake-build-flow.png \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 168 | figures/multiconfig_files.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 169 | eclipse |
| 170 | endif |
| 171 | |
| 172 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 173 | FIGURES = figures |
| 174 | STYLESHEET = $(DOC)/*.css |
| 175 | |
| 176 | endif |
| 177 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 178 | ifeq ($(DOC),mega-manual) |
| 179 | XSLTOPTS = --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 |
| 184 | ALLPREQ = html tarball |
| 185 | |
| 186 | ifeq ($(BRANCH),edison) |
| 187 | TARFILES = 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) |
| 202 | TARFILES = 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 Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 217 | TARFILES = mega-manual.html mega-style.css \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 218 | figures/YP-flow-diagram.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 219 | figures/using-a-pre-built-image.png \ |
| 220 | figures/poky-title.png figures/buildhistory.png \ |
| 221 | figures/buildhistory-web.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 222 | figures/sdk-title.png figures/bsp-title.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 223 | figures/kernel-dev-title.png figures/kernel-architecture-overview.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 224 | figures/bsp-dev-flow.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 225 | figures/dev-title.png \ |
| 226 | figures/git-workflow.png figures/index-downloads.png \ |
| 227 | figures/kernel-dev-flow.png \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 228 | figures/kernel-overview-2-generic.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 229 | 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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 256 | figures/user-configuration.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 257 | 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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 262 | figures/image-generation.png figures/key-dev-elements.png\ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 263 | figures/sdk-generation.png figures/recipe-workflow.png \ |
| 264 | figures/build-workspace-directory.png figures/mega-title.png \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 265 | figures/toaster-title.png figures/hosted-service.png figures/multiconfig_files.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 266 | figures/simple-configuration.png figures/poky-reference-distribution.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 267 | 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 Williams | c0f7c04 | 2017-02-23 20:41:17 -0600 | [diff] [blame] | 270 | figures/sdk-devtool-modify-flow.png figures/sdk-eclipse-dev-flow.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 271 | figures/sdk-devtool-upgrade-flow.png figures/bitbake-build-flow.png figures/bypqs-title.png \ |
Brad Bishop | 1932369 | 2019-04-05 15:28:33 -0400 | [diff] [blame^] | 272 | 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 Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 274 | endif |
| 275 | |
| 276 | MANUALS = $(DOC)/$(DOC).html |
| 277 | FIGURES = figures |
| 278 | STYLESHEET = $(DOC)/*.css |
| 279 | |
| 280 | endif |
| 281 | |
| 282 | ifeq ($(DOC),ref-manual) |
| 283 | XSLTOPTS = --xinclude |
| 284 | ALLPREQ = html eclipse tarball |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 285 | TARFILES = ref-manual.html ref-style.css figures/poky-title.png \ |
| 286 | figures/build-workspace-directory.png \ |
| 287 | eclipse |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 288 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 289 | FIGURES = figures |
| 290 | STYLESHEET = $(DOC)/*.css |
| 291 | endif |
| 292 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 293 | ifeq ($(DOC),sdk-manual) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 294 | XSLTOPTS = --xinclude |
| 295 | ALLPREQ = html eclipse tarball |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 296 | TARFILES = 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 Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 300 | figures/sdk-devtool-upgrade-flow.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 301 | eclipse |
| 302 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 303 | FIGURES = figures |
| 304 | STYLESHEET = $(DOC)/*.css |
| 305 | endif |
| 306 | |
| 307 | ifeq ($(DOC),profile-manual) |
| 308 | XSLTOPTS = --xinclude |
| 309 | ALLPREQ = html eclipse tarball |
| 310 | TARFILES = 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 |
| 337 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 338 | FIGURES = figures |
| 339 | STYLESHEET = $(DOC)/*.css |
| 340 | endif |
| 341 | |
| 342 | ifeq ($(DOC),kernel-dev) |
| 343 | XSLTOPTS = --xinclude |
| 344 | ALLPREQ = html eclipse tarball |
| 345 | TARFILES = kernel-dev.html kernel-dev-style.css \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 346 | figures/kernel-dev-title.png figures/kernel-overview-2-generic.png \ |
| 347 | figures/kernel-architecture-overview.png figures/kernel-dev-flow.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 348 | eclipse |
| 349 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 350 | FIGURES = figures |
| 351 | STYLESHEET = $(DOC)/*.css |
| 352 | endif |
| 353 | |
| 354 | ifeq ($(DOC),toaster-manual) |
| 355 | XSLTOPTS = --xinclude |
| 356 | ALLPREQ = html tarball |
| 357 | TARFILES = toaster-manual.html toaster-manual-style.css \ |
| 358 | figures/toaster-title.png figures/simple-configuration.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 359 | figures/hosted-service.png \ |
| 360 | figures/compatible-layers.png figures/import-layer.png figures/new-project.png |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 361 | MANUALS = $(DOC)/$(DOC).html |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 362 | FIGURES = figures |
| 363 | STYLESHEET = $(DOC)/*.css |
| 364 | endif |
| 365 | |
| 366 | |
| 367 | ## |
| 368 | # These URI should be rewritten by your distribution's xml catalog to |
| 369 | # match your locally installed XSL stylesheets. |
| 370 | XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/1.76.1 |
| 371 | XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl |
| 372 | |
| 373 | all: $(ALLPREQ) |
| 374 | |
| 375 | pdf: |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 376 | ifeq ($(DOC),brief-yoctoprojectqs) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 377 | @echo " " |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 378 | @echo "ERROR: You cannot generate a PDF file for brief-yoctoprojectqs." |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 379 | @echo " " |
| 380 | |
| 381 | else ifeq ($(DOC),mega-manual) |
| 382 | @echo " " |
| 383 | @echo "ERROR: You cannot generate a mega-manual PDF file." |
| 384 | @echo " " |
| 385 | |
| 386 | else |
| 387 | |
| 388 | cd $(DOC); ../tools/poky-docbook-to-pdf $(DOC).xml ../template; cd .. |
| 389 | endif |
| 390 | |
| 391 | html: |
| 392 | ifeq ($(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 .. |
| 406 | else |
| 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 .. |
| 412 | endif |
| 413 | |
| 414 | |
| 415 | eclipse: BASE_DIR = html/$(DOC)/ |
| 416 | |
| 417 | eclipse: eclipse-generate eclipse-resolve-links |
| 418 | |
| 419 | .PHONY : eclipse-generate eclipse-resolve-links |
| 420 | |
| 421 | eclipse-generate: |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 422 | ifeq ($(filter $(DOC), overview-manual sdk-manual bsp-guide dev-manual kernel-dev profile-manual ref-manual brief-yoctoprojectqs),) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 423 | @echo " " |
| 424 | @echo "ERROR: You can only create eclipse documentation" |
| 425 | @echo " of the following documentation parts:" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 426 | @echo " - overview-manual" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 427 | @echo " - sdk-manual" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 428 | @echo " - bsp-guide" |
| 429 | @echo " - dev-manual" |
| 430 | @echo " - kernel-dev" |
| 431 | @echo " - profile-manual" |
| 432 | @echo " - ref-manual" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 433 | @echo " - brief-yoctoprojectqs" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 434 | @echo " " |
| 435 | else |
| 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) |
| 449 | endif |
| 450 | |
| 451 | eclipse-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 | |
| 459 | tarball: html |
| 460 | @echo " " |
| 461 | @echo "******** Creating Tarball of document files" |
| 462 | @echo " " |
| 463 | cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd .. |
| 464 | |
| 465 | validate: |
| 466 | cd $(DOC); xmllint --postvalid --xinclude --noout $(DOC).xml; cd .. |
| 467 | |
| 468 | |
| 469 | publish: |
| 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 | |
| 483 | clean: |
| 484 | rm -rf $(MANUALS); rm $(DOC)/$(DOC).tgz; |