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