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 \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 168 | eclipse |
| 169 | endif |
| 170 | |
| 171 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 172 | FIGURES = figures |
| 173 | STYLESHEET = $(DOC)/*.css |
| 174 | |
| 175 | endif |
| 176 | |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 177 | ifeq ($(DOC),mega-manual) |
| 178 | XSLTOPTS = --stringparam html.stylesheet mega-style.css \ |
| 179 | --stringparam chapter.autolabel 1 \ |
| 180 | --stringparam section.autolabel 1 \ |
| 181 | --stringparam section.label.includes.component.label 1 \ |
| 182 | --xinclude |
| 183 | ALLPREQ = html tarball |
| 184 | |
| 185 | ifeq ($(BRANCH),edison) |
| 186 | TARFILES = mega-manual.html mega-style.css figures/yocto-environment.png \ |
| 187 | figures/building-an-image.png \ |
| 188 | figures/using-a-pre-built-image.png \ |
| 189 | figures/poky-title.png \ |
| 190 | figures/adt-title.png figures/bsp-title.png \ |
| 191 | figures/kernel-title.png figures/kernel-architecture-overview.png \ |
| 192 | figures/app-dev-flow.png figures/bsp-dev-flow.png \ |
| 193 | figures/dev-title.png figures/git-workflow.png \ |
| 194 | figures/index-downloads.png figures/kernel-dev-flow.png \ |
| 195 | figures/kernel-example-repos-edison.png \ |
| 196 | figures/kernel-overview-1.png figures/kernel-overview-2.png \ |
| 197 | figures/kernel-overview-3-edison.png \ |
| 198 | figures/source-repos.png figures/yp-download.png \ |
| 199 | figures/wip.png |
| 200 | else ifeq ($(BRANCH),denzil) |
| 201 | TARFILES = mega-manual.html mega-style.css figures/yocto-environment.png \ |
| 202 | figures/building-an-image.png \ |
| 203 | figures/using-a-pre-built-image.png \ |
| 204 | figures/poky-title.png \ |
| 205 | figures/adt-title.png figures/bsp-title.png \ |
| 206 | figures/kernel-title.png figures/kernel-architecture-overview.png \ |
| 207 | figures/app-dev-flow.png figures/bsp-dev-flow.png \ |
| 208 | figures/dev-title.png figures/git-workflow.png \ |
| 209 | figures/index-downloads.png figures/kernel-dev-flow.png \ |
| 210 | figures/kernel-example-repos-denzil.png \ |
| 211 | figures/kernel-overview-1.png figures/kernel-overview-2.png \ |
| 212 | figures/kernel-overview-3-denzil.png \ |
| 213 | figures/source-repos.png figures/yp-download.png \ |
| 214 | figures/wip.png |
| 215 | else |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 216 | TARFILES = mega-manual.html mega-style.css \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 217 | figures/YP-flow-diagram.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 218 | figures/using-a-pre-built-image.png \ |
| 219 | figures/poky-title.png figures/buildhistory.png \ |
| 220 | figures/buildhistory-web.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 221 | figures/sdk-title.png figures/bsp-title.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 222 | figures/kernel-dev-title.png figures/kernel-architecture-overview.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 223 | figures/bsp-dev-flow.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 224 | figures/dev-title.png \ |
| 225 | figures/git-workflow.png figures/index-downloads.png \ |
| 226 | figures/kernel-dev-flow.png \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 227 | figures/kernel-overview-2-generic.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 228 | figures/source-repos.png figures/yp-download.png \ |
| 229 | figures/profile-title.png figures/kernelshark-all.png \ |
| 230 | figures/kernelshark-choose-events.png \ |
| 231 | figures/kernelshark-i915-display.png \ |
| 232 | figures/kernelshark-output-display.png figures/lttngmain0.png \ |
| 233 | figures/oprofileui-busybox.png figures/oprofileui-copy-to-user.png \ |
| 234 | figures/oprofileui-downloading.png figures/oprofileui-processes.png \ |
| 235 | figures/perf-probe-do_fork-profile.png \ |
| 236 | figures/perf-report-cycles-u.png \ |
| 237 | figures/perf-systemwide.png figures/perf-systemwide-libc.png \ |
| 238 | figures/perf-wget-busybox-annotate-menu.png \ |
| 239 | figures/perf-wget-busybox-annotate-udhcpc.png \ |
| 240 | figures/perf-wget-busybox-debuginfo.png \ |
| 241 | figures/perf-wget-busybox-dso-zoom.png \ |
| 242 | figures/perf-wget-busybox-dso-zoom-menu.png \ |
| 243 | figures/perf-wget-busybox-expanded-stripped.png \ |
| 244 | figures/perf-wget-flat-stripped.png \ |
| 245 | figures/perf-wget-g-copy-from-user-expanded-stripped.png \ |
| 246 | figures/perf-wget-g-copy-to-user-expanded-debuginfo.png \ |
| 247 | figures/perf-wget-g-copy-to-user-expanded-stripped.png \ |
| 248 | figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png \ |
| 249 | figures/pybootchartgui-linux-yocto.png \ |
| 250 | figures/pychart-linux-yocto-rpm.png \ |
| 251 | figures/pychart-linux-yocto-rpm-nostrip.png \ |
| 252 | figures/sched-wakeup-profile.png figures/sysprof-callers.png \ |
| 253 | figures/sysprof-copy-from-user.png figures/sysprof-copy-to-user.png \ |
| 254 | figures/cross-development-toolchains.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 255 | figures/user-configuration.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 256 | figures/source-input.png figures/package-feeds.png \ |
| 257 | figures/layer-input.png figures/images.png figures/sdk.png \ |
| 258 | figures/source-fetching.png figures/patching.png \ |
| 259 | figures/configuration-compile-autoreconf.png \ |
| 260 | figures/analysis-for-package-splitting.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 261 | figures/image-generation.png figures/key-dev-elements.png\ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 262 | figures/sdk-generation.png figures/recipe-workflow.png \ |
| 263 | figures/build-workspace-directory.png figures/mega-title.png \ |
| 264 | figures/toaster-title.png figures/hosted-service.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 265 | figures/simple-configuration.png figures/poky-reference-distribution.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 266 | figures/compatible-layers.png figures/import-layer.png figures/new-project.png \ |
| 267 | figures/sdk-environment.png figures/sdk-installed-standard-sdk-directory.png \ |
| 268 | 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] | 269 | figures/sdk-devtool-modify-flow.png figures/sdk-eclipse-dev-flow.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 270 | figures/sdk-devtool-upgrade-flow.png figures/bitbake-build-flow.png figures/bypqs-title.png \ |
| 271 | figures/overview-manual-title.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.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 |
| 282 | ALLPREQ = html eclipse 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 \ |
| 284 | figures/build-workspace-directory.png \ |
| 285 | eclipse |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 286 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 287 | FIGURES = figures |
| 288 | STYLESHEET = $(DOC)/*.css |
| 289 | endif |
| 290 | |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 291 | ifeq ($(DOC),sdk-manual) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 292 | XSLTOPTS = --xinclude |
| 293 | ALLPREQ = html eclipse tarball |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 294 | TARFILES = sdk-manual.html sdk-style.css figures/sdk-title.png \ |
| 295 | figures/sdk-environment.png figures/sdk-installed-standard-sdk-directory.png \ |
| 296 | figures/sdk-installed-extensible-sdk-directory.png figures/sdk-devtool-add-flow.png \ |
| 297 | figures/sdk-devtool-modify-flow.png figures/sdk-eclipse-dev-flow.png \ |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 298 | 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] | 299 | eclipse |
| 300 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 301 | FIGURES = figures |
| 302 | STYLESHEET = $(DOC)/*.css |
| 303 | endif |
| 304 | |
| 305 | ifeq ($(DOC),profile-manual) |
| 306 | XSLTOPTS = --xinclude |
| 307 | ALLPREQ = html eclipse tarball |
| 308 | TARFILES = profile-manual.html profile-manual-style.css \ |
| 309 | figures/profile-title.png figures/kernelshark-all.png \ |
| 310 | figures/kernelshark-choose-events.png \ |
| 311 | figures/kernelshark-i915-display.png \ |
| 312 | figures/kernelshark-output-display.png figures/lttngmain0.png \ |
| 313 | figures/oprofileui-busybox.png figures/oprofileui-copy-to-user.png \ |
| 314 | figures/oprofileui-downloading.png figures/oprofileui-processes.png \ |
| 315 | figures/perf-probe-do_fork-profile.png \ |
| 316 | figures/perf-report-cycles-u.png \ |
| 317 | figures/perf-systemwide.png figures/perf-systemwide-libc.png \ |
| 318 | figures/perf-wget-busybox-annotate-menu.png \ |
| 319 | figures/perf-wget-busybox-annotate-udhcpc.png \ |
| 320 | figures/perf-wget-busybox-debuginfo.png \ |
| 321 | figures/perf-wget-busybox-dso-zoom.png \ |
| 322 | figures/perf-wget-busybox-dso-zoom-menu.png \ |
| 323 | figures/perf-wget-busybox-expanded-stripped.png \ |
| 324 | figures/perf-wget-flat-stripped.png \ |
| 325 | figures/perf-wget-g-copy-from-user-expanded-stripped.png \ |
| 326 | figures/perf-wget-g-copy-to-user-expanded-debuginfo.png \ |
| 327 | figures/perf-wget-g-copy-to-user-expanded-stripped.png \ |
| 328 | figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png \ |
| 329 | figures/pybootchartgui-linux-yocto.png \ |
| 330 | figures/pychart-linux-yocto-rpm.png \ |
| 331 | figures/pychart-linux-yocto-rpm-nostrip.png \ |
| 332 | figures/sched-wakeup-profile.png figures/sysprof-callers.png \ |
| 333 | figures/sysprof-copy-from-user.png figures/sysprof-copy-to-user.png \ |
| 334 | eclipse |
| 335 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 336 | FIGURES = figures |
| 337 | STYLESHEET = $(DOC)/*.css |
| 338 | endif |
| 339 | |
| 340 | ifeq ($(DOC),kernel-dev) |
| 341 | XSLTOPTS = --xinclude |
| 342 | ALLPREQ = html eclipse tarball |
| 343 | TARFILES = kernel-dev.html kernel-dev-style.css \ |
Brad Bishop | d7bf8c1 | 2018-02-25 22:55:05 -0500 | [diff] [blame] | 344 | figures/kernel-dev-title.png figures/kernel-overview-2-generic.png \ |
| 345 | figures/kernel-architecture-overview.png figures/kernel-dev-flow.png \ |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 346 | eclipse |
| 347 | MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse |
| 348 | FIGURES = figures |
| 349 | STYLESHEET = $(DOC)/*.css |
| 350 | endif |
| 351 | |
| 352 | ifeq ($(DOC),toaster-manual) |
| 353 | XSLTOPTS = --xinclude |
| 354 | ALLPREQ = html tarball |
| 355 | TARFILES = toaster-manual.html toaster-manual-style.css \ |
| 356 | figures/toaster-title.png figures/simple-configuration.png \ |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 357 | figures/hosted-service.png \ |
| 358 | figures/compatible-layers.png figures/import-layer.png figures/new-project.png |
Patrick Williams | f1e5d69 | 2016-03-30 15:21:19 -0500 | [diff] [blame] | 359 | MANUALS = $(DOC)/$(DOC).html |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 360 | FIGURES = figures |
| 361 | STYLESHEET = $(DOC)/*.css |
| 362 | endif |
| 363 | |
| 364 | |
| 365 | ## |
| 366 | # These URI should be rewritten by your distribution's xml catalog to |
| 367 | # match your locally installed XSL stylesheets. |
| 368 | XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/1.76.1 |
| 369 | XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl |
| 370 | |
| 371 | all: $(ALLPREQ) |
| 372 | |
| 373 | pdf: |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 374 | ifeq ($(DOC),brief-yoctoprojectqs) |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 375 | @echo " " |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 376 | @echo "ERROR: You cannot generate a PDF file for brief-yoctoprojectqs." |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 377 | @echo " " |
| 378 | |
| 379 | else ifeq ($(DOC),mega-manual) |
| 380 | @echo " " |
| 381 | @echo "ERROR: You cannot generate a mega-manual PDF file." |
| 382 | @echo " " |
| 383 | |
| 384 | else |
| 385 | |
| 386 | cd $(DOC); ../tools/poky-docbook-to-pdf $(DOC).xml ../template; cd .. |
| 387 | endif |
| 388 | |
| 389 | html: |
| 390 | ifeq ($(DOC),mega-manual) |
| 391 | # See http://www.sagehill.net/docbookxsl/HtmlOutput.html |
| 392 | @echo " " |
| 393 | @echo "******** Building "$(DOC) |
| 394 | @echo " " |
| 395 | cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd .. |
| 396 | @echo " " |
| 397 | @echo "******** Using mega-manual.sed to process external links" |
| 398 | @echo " " |
| 399 | cd $(DOC); sed -f ../tools/mega-manual.sed < mega-manual.html > mega-output.html; cd .. |
| 400 | @echo " " |
| 401 | @echo "******** Cleaning up transient file mega-output.html" |
| 402 | @echo " " |
| 403 | cd $(DOC); rm mega-manual.html; mv mega-output.html mega-manual.html; cd .. |
| 404 | else |
| 405 | # See http://www.sagehill.net/docbookxsl/HtmlOutput.html |
| 406 | @echo " " |
| 407 | @echo "******** Building "$(DOC) |
| 408 | @echo " " |
| 409 | cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd .. |
| 410 | endif |
| 411 | |
| 412 | |
| 413 | eclipse: BASE_DIR = html/$(DOC)/ |
| 414 | |
| 415 | eclipse: eclipse-generate eclipse-resolve-links |
| 416 | |
| 417 | .PHONY : eclipse-generate eclipse-resolve-links |
| 418 | |
| 419 | eclipse-generate: |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 420 | 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] | 421 | @echo " " |
| 422 | @echo "ERROR: You can only create eclipse documentation" |
| 423 | @echo " of the following documentation parts:" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 424 | @echo " - overview-manual" |
Patrick Williams | d8c66bc | 2016-06-20 12:57:21 -0500 | [diff] [blame] | 425 | @echo " - sdk-manual" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 426 | @echo " - bsp-guide" |
| 427 | @echo " - dev-manual" |
| 428 | @echo " - kernel-dev" |
| 429 | @echo " - profile-manual" |
| 430 | @echo " - ref-manual" |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 431 | @echo " - brief-yoctoprojectqs" |
Patrick Williams | c124f4f | 2015-09-15 14:41:29 -0500 | [diff] [blame] | 432 | @echo " " |
| 433 | else |
| 434 | @echo " " |
| 435 | @echo "******** Building eclipse help of "$(DOC) |
| 436 | @echo " " |
| 437 | cd $(DOC) && \ |
| 438 | xsltproc $(XSLTOPTS) \ |
| 439 | --stringparam base.dir '$(BASE_DIR)' \ |
| 440 | -o eclipse/$(DOC).html \ |
| 441 | $(DOC)-eclipse-customization.xsl $(DOC).xml && \ |
| 442 | mv eclipse/toc.xml eclipse/$(DOC)-toc.xml && \ |
| 443 | cp -rf $(FIGURES) eclipse/$(BASE_DIR) && \ |
| 444 | cd ..; |
| 445 | |
| 446 | $(call modify-eclipse) |
| 447 | endif |
| 448 | |
| 449 | eclipse-resolve-links: |
| 450 | @echo " " |
| 451 | @echo "******** Using eclipse-help.sed to process external links" |
| 452 | @echo " " |
| 453 | $(foreach FILE, \ |
| 454 | $(wildcard $(DOC)/eclipse/html/$(DOC)/*.html), \ |
| 455 | $(shell sed -i -f tools/eclipse-help.sed $(FILE))) |
| 456 | |
| 457 | tarball: html |
| 458 | @echo " " |
| 459 | @echo "******** Creating Tarball of document files" |
| 460 | @echo " " |
| 461 | cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd .. |
| 462 | |
| 463 | validate: |
| 464 | cd $(DOC); xmllint --postvalid --xinclude --noout $(DOC).xml; cd .. |
| 465 | |
| 466 | |
| 467 | publish: |
| 468 | @if test -f $(DOC)/$(DOC).html; \ |
| 469 | then \ |
| 470 | echo " "; \ |
| 471 | echo "******** Publishing "$(DOC)".html"; \ |
| 472 | echo " "; \ |
| 473 | scp -r $(MANUALS) $(STYLESHEET) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \ |
| 474 | cd $(DOC); scp -r $(FIGURES) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \ |
| 475 | else \ |
| 476 | echo " "; \ |
| 477 | echo $(DOC)".html missing. Generate the file first then try again."; \ |
| 478 | echo " "; \ |
| 479 | fi |
| 480 | |
| 481 | clean: |
| 482 | rm -rf $(MANUALS); rm $(DOC)/$(DOC).tgz; |