Andrew Geissler | 4ed12e1 | 2020-06-05 18:00:41 -0500 | [diff] [blame^] | 1 | # |
| 2 | # SPDX-License-Identifier: CC-BY-2.0-UK |
| 3 | # |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 4 | # This is a single Makefile to handle all generated Yocto Project documents, |
| 5 | # which includes the BitBake User Manual and the Toaster User Manual. |
| 6 | # The Makefile needs to live in the documents directory and all figures used |
| 7 | # in any manuals must be .PNG files and live in the individual book's figures |
| 8 | # directory as well as in the figures directory for the mega-manual. |
| 9 | # |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 10 | # Note that the figures for the Yocto Project Development Tasks Manual |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 11 | # differ depending on the BRANCH being built. |
| 12 | # |
| 13 | # The Makefile has these targets: |
| 14 | # all: If you leave off the target then "all" is implied. |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 15 | # You will generate HTML and a tarball of files. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 16 | # |
| 17 | # pdf: generates a PDF version of a manual. Not valid for the |
| 18 | # Quick Start or the mega-manual (single, large HTML file |
| 19 | # comprised of all Yocto Project manuals). |
| 20 | # html: generates an HTML version of a manual. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 21 | # tarball: creates a tarball for the doc files. |
| 22 | # validate: validates |
| 23 | # publish: pushes generated files to the Yocto Project website |
| 24 | # clean: removes files |
| 25 | # |
| 26 | # The Makefile can generate an HTML and PDF version of every document except the |
| 27 | # Yocto Project Quick Start and the single, HTML mega-manual, which is comprised |
| 28 | # of all the individual Yocto Project manuals. You can generate these two manuals |
| 29 | # in HTML form only. The variable DOC indicates the folder name for a given manual. |
| 30 | # The variable VER represents the distro version of the Yocto Release for which the |
| 31 | # manuals are being generated. The variable BRANCH is used to indicate the |
| 32 | # branch (edison or denzil) and is used only when DOC=dev-manual or |
| 33 | # DOC=mega-manual. If you do not specify a BRANCH, the default branch used |
| 34 | # will be for the latest Yocto Project release. If you build for either |
| 35 | # edison or denzil, you must use BRANCH. You do not need to use BRANCH for |
| 36 | # any release beyond denzil. |
| 37 | # |
| 38 | # To build a manual, you must invoke Makefile with the DOC argument. If you |
| 39 | # are going to publish the manual, then you must invoke Makefile with both the |
| 40 | # DOC and the VER argument. Furthermore, if you are building or publishing |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 41 | # 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] | 42 | # the mega-manual, you must also use the BRANCH argument. |
| 43 | # |
| 44 | # Examples: |
| 45 | # |
| 46 | # make DOC=bsp-guide |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 47 | # make html DOC=brief-yoctoprojectqs |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 48 | # make pdf DOC=ref-manual |
| 49 | # make DOC=dev-manual BRANCH=edison |
| 50 | # make DOC=mega-manual BRANCH=denzil |
| 51 | # |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 52 | # The first example generates the HTML version of the BSP Guide. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 53 | # The second example generates the HTML version only of the Quick Start. Note |
| 54 | # that the Quick Start only has an HTML version available. So, the |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 55 | # 'make DOC=brief-yoctoprojectqs' command would be equivalent. The third example |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 56 | # generates just the PDF version of the Yocto Project Reference Manual. |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 57 | # The fourth example generates the HTML 'edison' version of the YP Development |
| 58 | # Tasks Manual. The last example |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 59 | # generates the HTML version of the mega-manual and uses the 'denzil' |
| 60 | # branch when choosing figures for the tarball of figures. Any example that does |
| 61 | # not use the BRANCH argument builds the current version of the manual set. |
| 62 | # |
| 63 | # The publish target pushes the generated manuals to the Yocto Project |
| 64 | # website. Unless you are a developer on the YP team, you will not succeed in |
| 65 | # pushing manuals to this server. All files needed for the manual's HTML form are |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 66 | # pushed. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 67 | # |
| 68 | # Examples: |
| 69 | # |
| 70 | # make publish DOC=bsp-guide VER=1.7 |
| 71 | # make publish DOC=adt-manual VER=1.6 |
| 72 | # make publish DOC=dev-manual VER=1.1.1 BRANCH=edison |
| 73 | # make publish DOC=dev-manual VER=1.2 BRANCH=denzil |
| 74 | # |
| 75 | # The first example publishes the 1.7 version of both the PDF and HTML versions of |
| 76 | # the BSP Guide. The second example publishes the 1.6 version of both the PDF and |
| 77 | # 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] | 78 | # the PDF and HTML YP Development Tasks Manual for the 'edison' branch. The fourth |
| 79 | # example publishes the 1.2 version of the PDF and HTML YP Development Tasks Manual |
| 80 | # for the 'denzil' branch. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 81 | # |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 82 | # IN MEMORIAM: This comment is to remember Scott Rifenbark (scottrif), whom we lost |
| 83 | # in January, 2020. Scott was the primary technical writer for the Yocto Project for |
| 84 | # over 9 years. In that time, he contributed many thousands of patches, built this |
| 85 | # documentation tree, and enabled tens of thousands of developers to succeed with |
| 86 | # embedded Linux. He ran this Makefile many thousands of times. Godspeed, Dude. |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 87 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 88 | ifeq ($(DOC),brief-yoctoprojectqs) |
| 89 | XSLTOPTS = --stringparam html.stylesheet brief-yoctoprojectqs-style.css \ |
| 90 | --stringparam chapter.autolabel 0 \ |
| 91 | --stringparam section.autolabel 0 \ |
| 92 | --stringparam section.label.includes.component.label 0 \ |
| 93 | --xinclude |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 94 | ALLPREQ = html tarball |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 95 | TARFILES = brief-yoctoprojectqs-style.css brief-yoctoprojectqs.html figures/bypqs-title.png \ |
| 96 | figures/yocto-project-transp.png |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 97 | MANUALS = $(DOC)/$(DOC).html |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 98 | FIGURES = figures |
| 99 | STYLESHEET = $(DOC)/*.css |
| 100 | |
| 101 | endif |
| 102 | |
| 103 | ifeq ($(DOC),overview-manual) |
| 104 | XSLTOPTS = --xinclude |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 105 | ALLPREQ = html tarball |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 106 | TARFILES = overview-manual-style.css overview-manual.html figures/overview-manual-title.png \ |
| 107 | figures/git-workflow.png figures/source-repos.png figures/index-downloads.png \ |
| 108 | figures/yp-download.png figures/YP-flow-diagram.png figures/key-dev-elements.png \ |
| 109 | figures/poky-reference-distribution.png figures/cross-development-toolchains.png \ |
| 110 | figures/user-configuration.png figures/layer-input.png figures/source-input.png \ |
| 111 | figures/package-feeds.png figures/patching.png figures/source-fetching.png \ |
| 112 | figures/configuration-compile-autoreconf.png figures/analysis-for-package-splitting.png \ |
| 113 | figures/image-generation.png figures/sdk-generation.png figures/images.png \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 114 | figures/sdk.png |
| 115 | MANUALS = $(DOC)/$(DOC).html |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 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 |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 123 | ALLPREQ = html tarball |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 124 | TARFILES = bsp-style.css bsp-guide.html figures/bsp-title.png \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 125 | figures/bsp-dev-flow.png |
| 126 | MANUALS = $(DOC)/$(DOC).html |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 127 | FIGURES = figures |
| 128 | STYLESHEET = $(DOC)/*.css |
| 129 | |
| 130 | endif |
| 131 | |
| 132 | ifeq ($(DOC),dev-manual) |
| 133 | XSLTOPTS = --xinclude |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 134 | ALLPREQ = html tarball |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 135 | # |
| 136 | # Note that the tarfile might produce the "Cannot stat: No such file or |
| 137 | # directory" error message for .PNG files that are not present when building |
| 138 | # a particular branch. The list of files is all-inclusive for all branches. |
| 139 | # Note, if you don't provide a BRANCH option, it defaults to the latest stuff. |
| 140 | # This would be appropriate for "master" branch. |
| 141 | # |
| 142 | |
| 143 | ifeq ($(BRANCH),edison) |
| 144 | TARFILES = dev-style.css dev-manual.html \ |
| 145 | figures/app-dev-flow.png figures/bsp-dev-flow.png \ |
| 146 | figures/dev-title.png figures/git-workflow.png \ |
| 147 | figures/index-downloads.png figures/kernel-dev-flow.png \ |
| 148 | figures/kernel-example-repos-edison.png \ |
| 149 | figures/kernel-overview-1.png figures/kernel-overview-2.png \ |
| 150 | figures/kernel-overview-3-edison.png \ |
| 151 | figures/source-repos.png figures/yp-download.png \ |
| 152 | figures/wip.png |
| 153 | else ifeq ($(BRANCH),denzil) |
| 154 | TARFILES = dev-style.css dev-manual.html \ |
| 155 | figures/app-dev-flow.png figures/bsp-dev-flow.png \ |
| 156 | figures/dev-title.png figures/git-workflow.png \ |
| 157 | figures/index-downloads.png figures/kernel-dev-flow.png \ |
| 158 | figures/kernel-example-repos-denzil.png \ |
| 159 | figures/kernel-overview-1.png figures/kernel-overview-2.png \ |
| 160 | figures/kernel-overview-3-denzil.png \ |
| 161 | figures/source-repos.png figures/yp-download.png \ |
| 162 | figures/wip.png |
| 163 | else |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 164 | TARFILES = dev-style.css dev-manual.html figures/buildhistory-web.png \ |
| 165 | figures/dev-title.png figures/buildhistory.png \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 166 | figures/recipe-workflow.png figures/bitbake-build-flow.png \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 167 | figures/multiconfig_files.png figures/cute-files-npm-example.png |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 168 | endif |
| 169 | |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 170 | MANUALS = $(DOC)/$(DOC).html |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 171 | FIGURES = figures |
| 172 | STYLESHEET = $(DOC)/*.css |
| 173 | |
| 174 | endif |
| 175 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 176 | ifeq ($(DOC),mega-manual) |
| 177 | XSLTOPTS = --stringparam html.stylesheet mega-style.css \ |
| 178 | --stringparam chapter.autolabel 1 \ |
| 179 | --stringparam section.autolabel 1 \ |
| 180 | --stringparam section.label.includes.component.label 1 \ |
| 181 | --xinclude |
| 182 | ALLPREQ = html tarball |
| 183 | |
| 184 | ifeq ($(BRANCH),edison) |
| 185 | TARFILES = mega-manual.html mega-style.css figures/yocto-environment.png \ |
| 186 | figures/building-an-image.png \ |
| 187 | figures/using-a-pre-built-image.png \ |
| 188 | figures/poky-title.png \ |
| 189 | figures/adt-title.png figures/bsp-title.png \ |
| 190 | figures/kernel-title.png figures/kernel-architecture-overview.png \ |
| 191 | figures/app-dev-flow.png figures/bsp-dev-flow.png \ |
| 192 | figures/dev-title.png figures/git-workflow.png \ |
| 193 | figures/index-downloads.png figures/kernel-dev-flow.png \ |
| 194 | figures/kernel-example-repos-edison.png \ |
| 195 | figures/kernel-overview-1.png figures/kernel-overview-2.png \ |
| 196 | figures/kernel-overview-3-edison.png \ |
| 197 | figures/source-repos.png figures/yp-download.png \ |
| 198 | figures/wip.png |
| 199 | else ifeq ($(BRANCH),denzil) |
| 200 | TARFILES = mega-manual.html mega-style.css figures/yocto-environment.png \ |
| 201 | figures/building-an-image.png \ |
| 202 | figures/using-a-pre-built-image.png \ |
| 203 | figures/poky-title.png \ |
| 204 | figures/adt-title.png figures/bsp-title.png \ |
| 205 | figures/kernel-title.png figures/kernel-architecture-overview.png \ |
| 206 | figures/app-dev-flow.png figures/bsp-dev-flow.png \ |
| 207 | figures/dev-title.png figures/git-workflow.png \ |
| 208 | figures/index-downloads.png figures/kernel-dev-flow.png \ |
| 209 | figures/kernel-example-repos-denzil.png \ |
| 210 | figures/kernel-overview-1.png figures/kernel-overview-2.png \ |
| 211 | figures/kernel-overview-3-denzil.png \ |
| 212 | figures/source-repos.png figures/yp-download.png \ |
| 213 | figures/wip.png |
| 214 | else |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 215 | TARFILES = mega-manual.html mega-style.css \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 216 | figures/YP-flow-diagram.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 217 | figures/using-a-pre-built-image.png \ |
| 218 | figures/poky-title.png figures/buildhistory.png \ |
| 219 | figures/buildhistory-web.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 220 | figures/sdk-title.png figures/bsp-title.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 221 | figures/kernel-dev-title.png figures/kernel-architecture-overview.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 222 | figures/bsp-dev-flow.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 223 | figures/dev-title.png \ |
| 224 | figures/git-workflow.png figures/index-downloads.png \ |
| 225 | figures/kernel-dev-flow.png \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 226 | figures/kernel-overview-2-generic.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 227 | figures/source-repos.png figures/yp-download.png \ |
| 228 | figures/profile-title.png figures/kernelshark-all.png \ |
| 229 | figures/kernelshark-choose-events.png \ |
| 230 | figures/kernelshark-i915-display.png \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 231 | figures/kernelshark-output-display.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 232 | figures/oprofileui-busybox.png figures/oprofileui-copy-to-user.png \ |
| 233 | figures/oprofileui-downloading.png figures/oprofileui-processes.png \ |
| 234 | figures/perf-probe-do_fork-profile.png \ |
| 235 | figures/perf-report-cycles-u.png \ |
| 236 | figures/perf-systemwide.png figures/perf-systemwide-libc.png \ |
| 237 | figures/perf-wget-busybox-annotate-menu.png \ |
| 238 | figures/perf-wget-busybox-annotate-udhcpc.png \ |
| 239 | figures/perf-wget-busybox-debuginfo.png \ |
| 240 | figures/perf-wget-busybox-dso-zoom.png \ |
| 241 | figures/perf-wget-busybox-dso-zoom-menu.png \ |
| 242 | figures/perf-wget-busybox-expanded-stripped.png \ |
| 243 | figures/perf-wget-flat-stripped.png \ |
| 244 | figures/perf-wget-g-copy-from-user-expanded-stripped.png \ |
| 245 | figures/perf-wget-g-copy-to-user-expanded-debuginfo.png \ |
| 246 | figures/perf-wget-g-copy-to-user-expanded-stripped.png \ |
| 247 | figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png \ |
| 248 | figures/pybootchartgui-linux-yocto.png \ |
| 249 | figures/pychart-linux-yocto-rpm.png \ |
| 250 | figures/pychart-linux-yocto-rpm-nostrip.png \ |
| 251 | figures/sched-wakeup-profile.png figures/sysprof-callers.png \ |
| 252 | figures/sysprof-copy-from-user.png figures/sysprof-copy-to-user.png \ |
| 253 | figures/cross-development-toolchains.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 254 | figures/user-configuration.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 255 | figures/source-input.png figures/package-feeds.png \ |
| 256 | figures/layer-input.png figures/images.png figures/sdk.png \ |
| 257 | figures/source-fetching.png figures/patching.png \ |
| 258 | figures/configuration-compile-autoreconf.png \ |
| 259 | figures/analysis-for-package-splitting.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 260 | figures/image-generation.png figures/key-dev-elements.png\ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 261 | figures/sdk-generation.png figures/recipe-workflow.png \ |
| 262 | figures/build-workspace-directory.png figures/mega-title.png \ |
Brad Bishop | 1a4b7ee | 2018-12-16 17:11:34 -0800 | [diff] [blame] | 263 | figures/toaster-title.png figures/hosted-service.png figures/multiconfig_files.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 264 | figures/simple-configuration.png figures/poky-reference-distribution.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 265 | figures/compatible-layers.png figures/import-layer.png figures/new-project.png \ |
| 266 | figures/sdk-environment.png figures/sdk-installed-standard-sdk-directory.png \ |
| 267 | figures/sdk-devtool-add-flow.png figures/sdk-installed-extensible-sdk-directory.png \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 268 | figures/sdk-devtool-modify-flow.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 269 | 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] | 270 | figures/overview-manual-title.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.png \ |
Brad Bishop | 15ae250 | 2019-06-18 21:44:24 -0400 | [diff] [blame] | 271 | figures/bb_multiconfig_files.png figures/bitbake-title.png figures/cute-files-npm-example.png |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 272 | endif |
| 273 | |
| 274 | MANUALS = $(DOC)/$(DOC).html |
| 275 | FIGURES = figures |
| 276 | STYLESHEET = $(DOC)/*.css |
| 277 | |
| 278 | endif |
| 279 | |
| 280 | ifeq ($(DOC),ref-manual) |
| 281 | XSLTOPTS = --xinclude |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 282 | ALLPREQ = html tarball |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 283 | TARFILES = ref-manual.html ref-style.css figures/poky-title.png \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 284 | figures/build-workspace-directory.png |
| 285 | MANUALS = $(DOC)/$(DOC).html |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 286 | FIGURES = figures |
| 287 | STYLESHEET = $(DOC)/*.css |
| 288 | endif |
| 289 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 290 | ifeq ($(DOC),sdk-manual) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 291 | XSLTOPTS = --xinclude |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 292 | ALLPREQ = html tarball |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 293 | TARFILES = sdk-manual.html sdk-style.css figures/sdk-title.png \ |
| 294 | figures/sdk-environment.png figures/sdk-installed-standard-sdk-directory.png \ |
| 295 | figures/sdk-installed-extensible-sdk-directory.png figures/sdk-devtool-add-flow.png \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 296 | figures/sdk-devtool-modify-flow.png \ |
| 297 | figures/sdk-devtool-upgrade-flow.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.png |
| 298 | MANUALS = $(DOC)/$(DOC).html |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 299 | FIGURES = figures |
| 300 | STYLESHEET = $(DOC)/*.css |
| 301 | endif |
| 302 | |
| 303 | ifeq ($(DOC),profile-manual) |
| 304 | XSLTOPTS = --xinclude |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 305 | ALLPREQ = html tarball |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 306 | TARFILES = profile-manual.html profile-manual-style.css \ |
| 307 | figures/profile-title.png figures/kernelshark-all.png \ |
| 308 | figures/kernelshark-choose-events.png \ |
| 309 | figures/kernelshark-i915-display.png \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 310 | figures/kernelshark-output-display.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 311 | figures/oprofileui-busybox.png figures/oprofileui-copy-to-user.png \ |
| 312 | figures/oprofileui-downloading.png figures/oprofileui-processes.png \ |
| 313 | figures/perf-probe-do_fork-profile.png \ |
| 314 | figures/perf-report-cycles-u.png \ |
| 315 | figures/perf-systemwide.png figures/perf-systemwide-libc.png \ |
| 316 | figures/perf-wget-busybox-annotate-menu.png \ |
| 317 | figures/perf-wget-busybox-annotate-udhcpc.png \ |
| 318 | figures/perf-wget-busybox-debuginfo.png \ |
| 319 | figures/perf-wget-busybox-dso-zoom.png \ |
| 320 | figures/perf-wget-busybox-dso-zoom-menu.png \ |
| 321 | figures/perf-wget-busybox-expanded-stripped.png \ |
| 322 | figures/perf-wget-flat-stripped.png \ |
| 323 | figures/perf-wget-g-copy-from-user-expanded-stripped.png \ |
| 324 | figures/perf-wget-g-copy-to-user-expanded-debuginfo.png \ |
| 325 | figures/perf-wget-g-copy-to-user-expanded-stripped.png \ |
| 326 | figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png \ |
| 327 | figures/pybootchartgui-linux-yocto.png \ |
| 328 | figures/pychart-linux-yocto-rpm.png \ |
| 329 | figures/pychart-linux-yocto-rpm-nostrip.png \ |
| 330 | figures/sched-wakeup-profile.png figures/sysprof-callers.png \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 331 | figures/sysprof-copy-from-user.png figures/sysprof-copy-to-user.png |
| 332 | MANUALS = $(DOC)/$(DOC).html |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 333 | FIGURES = figures |
| 334 | STYLESHEET = $(DOC)/*.css |
| 335 | endif |
| 336 | |
| 337 | ifeq ($(DOC),kernel-dev) |
| 338 | XSLTOPTS = --xinclude |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 339 | ALLPREQ = html tarball |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 340 | TARFILES = kernel-dev.html kernel-dev-style.css \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 341 | figures/kernel-dev-title.png figures/kernel-overview-2-generic.png \ |
Brad Bishop | c342db3 | 2019-05-15 21:57:59 -0400 | [diff] [blame] | 342 | figures/kernel-architecture-overview.png figures/kernel-dev-flow.png |
| 343 | MANUALS = $(DOC)/$(DOC).html |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 344 | FIGURES = figures |
| 345 | STYLESHEET = $(DOC)/*.css |
| 346 | endif |
| 347 | |
| 348 | ifeq ($(DOC),toaster-manual) |
| 349 | XSLTOPTS = --xinclude |
| 350 | ALLPREQ = html tarball |
| 351 | TARFILES = toaster-manual.html toaster-manual-style.css \ |
| 352 | figures/toaster-title.png figures/simple-configuration.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 353 | figures/hosted-service.png \ |
| 354 | figures/compatible-layers.png figures/import-layer.png figures/new-project.png |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 355 | MANUALS = $(DOC)/$(DOC).html |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 356 | FIGURES = figures |
| 357 | STYLESHEET = $(DOC)/*.css |
| 358 | endif |
| 359 | |
| 360 | |
| 361 | ## |
| 362 | # These URI should be rewritten by your distribution's xml catalog to |
| 363 | # match your locally installed XSL stylesheets. |
| 364 | XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/1.76.1 |
| 365 | XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl |
| 366 | |
| 367 | all: $(ALLPREQ) |
| 368 | |
| 369 | pdf: |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 370 | ifeq ($(DOC),brief-yoctoprojectqs) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 371 | @echo " " |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 372 | @echo "ERROR: You cannot generate a PDF file for brief-yoctoprojectqs." |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 373 | @echo " " |
| 374 | |
| 375 | else ifeq ($(DOC),mega-manual) |
| 376 | @echo " " |
| 377 | @echo "ERROR: You cannot generate a mega-manual PDF file." |
| 378 | @echo " " |
| 379 | |
| 380 | else |
| 381 | |
| 382 | cd $(DOC); ../tools/poky-docbook-to-pdf $(DOC).xml ../template; cd .. |
| 383 | endif |
| 384 | |
| 385 | html: |
| 386 | ifeq ($(DOC),mega-manual) |
| 387 | # See http://www.sagehill.net/docbookxsl/HtmlOutput.html |
| 388 | @echo " " |
| 389 | @echo "******** Building "$(DOC) |
| 390 | @echo " " |
| 391 | cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd .. |
| 392 | @echo " " |
| 393 | @echo "******** Using mega-manual.sed to process external links" |
| 394 | @echo " " |
| 395 | cd $(DOC); sed -f ../tools/mega-manual.sed < mega-manual.html > mega-output.html; cd .. |
| 396 | @echo " " |
| 397 | @echo "******** Cleaning up transient file mega-output.html" |
| 398 | @echo " " |
| 399 | cd $(DOC); rm mega-manual.html; mv mega-output.html mega-manual.html; cd .. |
| 400 | else |
| 401 | # See http://www.sagehill.net/docbookxsl/HtmlOutput.html |
| 402 | @echo " " |
| 403 | @echo "******** Building "$(DOC) |
| 404 | @echo " " |
| 405 | cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd .. |
| 406 | endif |
| 407 | |
| 408 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 409 | tarball: html |
| 410 | @echo " " |
| 411 | @echo "******** Creating Tarball of document files" |
| 412 | @echo " " |
| 413 | cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd .. |
| 414 | |
| 415 | validate: |
| 416 | cd $(DOC); xmllint --postvalid --xinclude --noout $(DOC).xml; cd .. |
| 417 | |
| 418 | |
| 419 | publish: |
| 420 | @if test -f $(DOC)/$(DOC).html; \ |
| 421 | then \ |
| 422 | echo " "; \ |
| 423 | echo "******** Publishing "$(DOC)".html"; \ |
| 424 | echo " "; \ |
Andrew Geissler | 82c905d | 2020-04-13 13:39:40 -0500 | [diff] [blame] | 425 | scp -r $(MANUALS) $(STYLESHEET) www.yoctoproject.org:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \ |
| 426 | cd $(DOC); scp -r $(FIGURES) www.yoctoproject.org:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 427 | else \ |
| 428 | echo " "; \ |
| 429 | echo $(DOC)".html missing. Generate the file first then try again."; \ |
| 430 | echo " "; \ |
| 431 | fi |
| 432 | |
| 433 | clean: |
| 434 | rm -rf $(MANUALS); rm $(DOC)/$(DOC).tgz; |