Makefile 20 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488
  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. #
  11. # Note that the figures for the Yocto Project Development Tasks Manual
  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
  45. # the edison or denzil versions of the Yocto Project Development Tasks Manual or
  46. # the mega-manual, you must also use the BRANCH argument.
  47. #
  48. # Examples:
  49. #
  50. # make DOC=bsp-guide
  51. # make html DOC=brief-yoctoprojectqs
  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
  59. # 'make DOC=brief-yoctoprojectqs' command would be equivalent. The third example
  60. # generates just the PDF version of the Yocto Project Reference Manual.
  61. # The fourth example generates the HTML 'edison' version and (if available)
  62. # the Eclipse help version of the YP Development Tasks Manual. The last example
  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
  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.
  85. #
  86. # IN MEMORIAM: This comment is to remember Scott Rifenbark (scottrif), whom we lost
  87. # in January, 2020. Scott was the primary technical writer for the Yocto Project for
  88. # over 9 years. In that time, he contributed many thousands of patches, built this
  89. # documentation tree, and enabled tens of thousands of developers to succeed with
  90. # embedded Linux. He ran this Makefile many thousands of times. Godspeed, Dude.
  91. ifeq ($(DOC),brief-yoctoprojectqs)
  92. XSLTOPTS = --stringparam html.stylesheet brief-yoctoprojectqs-style.css \
  93. --stringparam chapter.autolabel 0 \
  94. --stringparam section.autolabel 0 \
  95. --stringparam section.label.includes.component.label 0 \
  96. --xinclude
  97. ALLPREQ = html eclipse tarball
  98. TARFILES = brief-yoctoprojectqs-style.css brief-yoctoprojectqs.html figures/bypqs-title.png \
  99. figures/yocto-project-transp.png
  100. MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
  101. FIGURES = figures
  102. STYLESHEET = $(DOC)/*.css
  103. endif
  104. ifeq ($(DOC),overview-manual)
  105. XSLTOPTS = --xinclude
  106. ALLPREQ = html eclipse tarball
  107. TARFILES = overview-manual-style.css overview-manual.html figures/overview-manual-title.png \
  108. figures/git-workflow.png figures/source-repos.png figures/index-downloads.png \
  109. figures/yp-download.png figures/YP-flow-diagram.png figures/key-dev-elements.png \
  110. figures/poky-reference-distribution.png figures/cross-development-toolchains.png \
  111. figures/user-configuration.png figures/layer-input.png figures/source-input.png \
  112. figures/package-feeds.png figures/patching.png figures/source-fetching.png \
  113. figures/configuration-compile-autoreconf.png figures/analysis-for-package-splitting.png \
  114. figures/image-generation.png figures/sdk-generation.png figures/images.png \
  115. figures/sdk.png \
  116. eclipse
  117. MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
  118. FIGURES = figures
  119. STYLESHEET = $(DOC)/*.css
  120. endif
  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 \
  125. figures/bsp-dev-flow.png \
  126. eclipse
  127. MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
  128. FIGURES = figures
  129. STYLESHEET = $(DOC)/*.css
  130. endif
  131. ifeq ($(DOC),dev-manual)
  132. XSLTOPTS = --xinclude
  133. ALLPREQ = html eclipse tarball
  134. #
  135. # Note that the tarfile might produce the "Cannot stat: No such file or
  136. # directory" error message for .PNG files that are not present when building
  137. # a particular branch. The list of files is all-inclusive for all branches.
  138. # Note, if you don't provide a BRANCH option, it defaults to the latest stuff.
  139. # This would be appropriate for "master" branch.
  140. #
  141. ifeq ($(BRANCH),edison)
  142. TARFILES = dev-style.css dev-manual.html \
  143. figures/app-dev-flow.png figures/bsp-dev-flow.png \
  144. figures/dev-title.png figures/git-workflow.png \
  145. figures/index-downloads.png figures/kernel-dev-flow.png \
  146. figures/kernel-example-repos-edison.png \
  147. figures/kernel-overview-1.png figures/kernel-overview-2.png \
  148. figures/kernel-overview-3-edison.png \
  149. figures/source-repos.png figures/yp-download.png \
  150. figures/wip.png
  151. else ifeq ($(BRANCH),denzil)
  152. TARFILES = dev-style.css dev-manual.html \
  153. figures/app-dev-flow.png figures/bsp-dev-flow.png \
  154. figures/dev-title.png figures/git-workflow.png \
  155. figures/index-downloads.png figures/kernel-dev-flow.png \
  156. figures/kernel-example-repos-denzil.png \
  157. figures/kernel-overview-1.png figures/kernel-overview-2.png \
  158. figures/kernel-overview-3-denzil.png \
  159. figures/source-repos.png figures/yp-download.png \
  160. figures/wip.png
  161. else
  162. TARFILES = dev-style.css dev-manual.html figures/buildhistory-web.png \
  163. figures/dev-title.png figures/buildhistory.png \
  164. figures/recipe-workflow.png figures/bitbake-build-flow.png \
  165. figures/multiconfig_files.png \
  166. eclipse
  167. endif
  168. MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
  169. FIGURES = figures
  170. STYLESHEET = $(DOC)/*.css
  171. endif
  172. ifeq ($(DOC),mega-manual)
  173. XSLTOPTS = --stringparam html.stylesheet mega-style.css \
  174. --stringparam chapter.autolabel 1 \
  175. --stringparam section.autolabel 1 \
  176. --stringparam section.label.includes.component.label 1 \
  177. --xinclude
  178. ALLPREQ = html tarball
  179. ifeq ($(BRANCH),edison)
  180. TARFILES = mega-manual.html mega-style.css figures/yocto-environment.png \
  181. figures/building-an-image.png \
  182. figures/using-a-pre-built-image.png \
  183. figures/poky-title.png \
  184. figures/adt-title.png figures/bsp-title.png \
  185. figures/kernel-title.png figures/kernel-architecture-overview.png \
  186. figures/app-dev-flow.png figures/bsp-dev-flow.png \
  187. figures/dev-title.png figures/git-workflow.png \
  188. figures/index-downloads.png figures/kernel-dev-flow.png \
  189. figures/kernel-example-repos-edison.png \
  190. figures/kernel-overview-1.png figures/kernel-overview-2.png \
  191. figures/kernel-overview-3-edison.png \
  192. figures/source-repos.png figures/yp-download.png \
  193. figures/wip.png
  194. else ifeq ($(BRANCH),denzil)
  195. TARFILES = mega-manual.html mega-style.css figures/yocto-environment.png \
  196. figures/building-an-image.png \
  197. figures/using-a-pre-built-image.png \
  198. figures/poky-title.png \
  199. figures/adt-title.png figures/bsp-title.png \
  200. figures/kernel-title.png figures/kernel-architecture-overview.png \
  201. figures/app-dev-flow.png figures/bsp-dev-flow.png \
  202. figures/dev-title.png figures/git-workflow.png \
  203. figures/index-downloads.png figures/kernel-dev-flow.png \
  204. figures/kernel-example-repos-denzil.png \
  205. figures/kernel-overview-1.png figures/kernel-overview-2.png \
  206. figures/kernel-overview-3-denzil.png \
  207. figures/source-repos.png figures/yp-download.png \
  208. figures/wip.png
  209. else
  210. TARFILES = mega-manual.html mega-style.css \
  211. figures/YP-flow-diagram.png \
  212. figures/using-a-pre-built-image.png \
  213. figures/poky-title.png figures/buildhistory.png \
  214. figures/buildhistory-web.png \
  215. figures/sdk-title.png figures/bsp-title.png \
  216. figures/kernel-dev-title.png figures/kernel-architecture-overview.png \
  217. figures/bsp-dev-flow.png \
  218. figures/dev-title.png \
  219. figures/git-workflow.png figures/index-downloads.png \
  220. figures/kernel-dev-flow.png \
  221. figures/kernel-overview-2-generic.png \
  222. figures/source-repos.png figures/yp-download.png \
  223. figures/profile-title.png figures/kernelshark-all.png \
  224. figures/kernelshark-choose-events.png \
  225. figures/kernelshark-i915-display.png \
  226. figures/kernelshark-output-display.png figures/lttngmain0.png \
  227. figures/oprofileui-busybox.png figures/oprofileui-copy-to-user.png \
  228. figures/oprofileui-downloading.png figures/oprofileui-processes.png \
  229. figures/perf-probe-do_fork-profile.png \
  230. figures/perf-report-cycles-u.png \
  231. figures/perf-systemwide.png figures/perf-systemwide-libc.png \
  232. figures/perf-wget-busybox-annotate-menu.png \
  233. figures/perf-wget-busybox-annotate-udhcpc.png \
  234. figures/perf-wget-busybox-debuginfo.png \
  235. figures/perf-wget-busybox-dso-zoom.png \
  236. figures/perf-wget-busybox-dso-zoom-menu.png \
  237. figures/perf-wget-busybox-expanded-stripped.png \
  238. figures/perf-wget-flat-stripped.png \
  239. figures/perf-wget-g-copy-from-user-expanded-stripped.png \
  240. figures/perf-wget-g-copy-to-user-expanded-debuginfo.png \
  241. figures/perf-wget-g-copy-to-user-expanded-stripped.png \
  242. figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png \
  243. figures/pybootchartgui-linux-yocto.png \
  244. figures/pychart-linux-yocto-rpm.png \
  245. figures/pychart-linux-yocto-rpm-nostrip.png \
  246. figures/sched-wakeup-profile.png figures/sysprof-callers.png \
  247. figures/sysprof-copy-from-user.png figures/sysprof-copy-to-user.png \
  248. figures/cross-development-toolchains.png \
  249. figures/user-configuration.png \
  250. figures/source-input.png figures/package-feeds.png \
  251. figures/layer-input.png figures/images.png figures/sdk.png \
  252. figures/source-fetching.png figures/patching.png \
  253. figures/configuration-compile-autoreconf.png \
  254. figures/analysis-for-package-splitting.png \
  255. figures/image-generation.png figures/key-dev-elements.png\
  256. figures/sdk-generation.png figures/recipe-workflow.png \
  257. figures/build-workspace-directory.png figures/mega-title.png \
  258. figures/toaster-title.png figures/hosted-service.png figures/multiconfig_files.png \
  259. figures/simple-configuration.png figures/poky-reference-distribution.png \
  260. figures/compatible-layers.png figures/import-layer.png figures/new-project.png \
  261. figures/sdk-environment.png figures/sdk-installed-standard-sdk-directory.png \
  262. figures/sdk-devtool-add-flow.png figures/sdk-installed-extensible-sdk-directory.png \
  263. figures/sdk-devtool-modify-flow.png figures/sdk-eclipse-dev-flow.png \
  264. figures/sdk-devtool-upgrade-flow.png figures/bitbake-build-flow.png figures/bypqs-title.png \
  265. figures/overview-manual-title.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.png
  266. endif
  267. MANUALS = $(DOC)/$(DOC).html
  268. FIGURES = figures
  269. STYLESHEET = $(DOC)/*.css
  270. endif
  271. ifeq ($(DOC),ref-manual)
  272. XSLTOPTS = --xinclude
  273. ALLPREQ = html eclipse tarball
  274. TARFILES = ref-manual.html ref-style.css figures/poky-title.png \
  275. figures/build-workspace-directory.png \
  276. eclipse
  277. MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
  278. FIGURES = figures
  279. STYLESHEET = $(DOC)/*.css
  280. endif
  281. ifeq ($(DOC),sdk-manual)
  282. XSLTOPTS = --xinclude
  283. ALLPREQ = html eclipse tarball
  284. TARFILES = sdk-manual.html sdk-style.css figures/sdk-title.png \
  285. figures/sdk-environment.png figures/sdk-installed-standard-sdk-directory.png \
  286. figures/sdk-installed-extensible-sdk-directory.png figures/sdk-devtool-add-flow.png \
  287. figures/sdk-devtool-modify-flow.png figures/sdk-eclipse-dev-flow.png \
  288. figures/sdk-devtool-upgrade-flow.png figures/sdk-autotools-flow.png figures/sdk-makefile-flow.png \
  289. eclipse
  290. MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
  291. FIGURES = figures
  292. STYLESHEET = $(DOC)/*.css
  293. endif
  294. ifeq ($(DOC),profile-manual)
  295. XSLTOPTS = --xinclude
  296. ALLPREQ = html eclipse tarball
  297. TARFILES = profile-manual.html profile-manual-style.css \
  298. figures/profile-title.png figures/kernelshark-all.png \
  299. figures/kernelshark-choose-events.png \
  300. figures/kernelshark-i915-display.png \
  301. figures/kernelshark-output-display.png figures/lttngmain0.png \
  302. figures/oprofileui-busybox.png figures/oprofileui-copy-to-user.png \
  303. figures/oprofileui-downloading.png figures/oprofileui-processes.png \
  304. figures/perf-probe-do_fork-profile.png \
  305. figures/perf-report-cycles-u.png \
  306. figures/perf-systemwide.png figures/perf-systemwide-libc.png \
  307. figures/perf-wget-busybox-annotate-menu.png \
  308. figures/perf-wget-busybox-annotate-udhcpc.png \
  309. figures/perf-wget-busybox-debuginfo.png \
  310. figures/perf-wget-busybox-dso-zoom.png \
  311. figures/perf-wget-busybox-dso-zoom-menu.png \
  312. figures/perf-wget-busybox-expanded-stripped.png \
  313. figures/perf-wget-flat-stripped.png \
  314. figures/perf-wget-g-copy-from-user-expanded-stripped.png \
  315. figures/perf-wget-g-copy-to-user-expanded-debuginfo.png \
  316. figures/perf-wget-g-copy-to-user-expanded-stripped.png \
  317. figures/perf-wget-g-copy-to-user-expanded-stripped-unresolved-hidden.png \
  318. figures/pybootchartgui-linux-yocto.png \
  319. figures/pychart-linux-yocto-rpm.png \
  320. figures/pychart-linux-yocto-rpm-nostrip.png \
  321. figures/sched-wakeup-profile.png figures/sysprof-callers.png \
  322. figures/sysprof-copy-from-user.png figures/sysprof-copy-to-user.png \
  323. eclipse
  324. MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
  325. FIGURES = figures
  326. STYLESHEET = $(DOC)/*.css
  327. endif
  328. ifeq ($(DOC),kernel-dev)
  329. XSLTOPTS = --xinclude
  330. ALLPREQ = html eclipse tarball
  331. TARFILES = kernel-dev.html kernel-dev-style.css \
  332. figures/kernel-dev-title.png figures/kernel-overview-2-generic.png \
  333. figures/kernel-architecture-overview.png figures/kernel-dev-flow.png \
  334. eclipse
  335. MANUALS = $(DOC)/$(DOC).html $(DOC)/eclipse
  336. FIGURES = figures
  337. STYLESHEET = $(DOC)/*.css
  338. endif
  339. ifeq ($(DOC),toaster-manual)
  340. XSLTOPTS = --xinclude
  341. ALLPREQ = html tarball
  342. TARFILES = toaster-manual.html toaster-manual-style.css \
  343. figures/toaster-title.png figures/simple-configuration.png \
  344. figures/hosted-service.png \
  345. figures/compatible-layers.png figures/import-layer.png figures/new-project.png
  346. MANUALS = $(DOC)/$(DOC).html
  347. FIGURES = figures
  348. STYLESHEET = $(DOC)/*.css
  349. endif
  350. ##
  351. # These URI should be rewritten by your distribution's xml catalog to
  352. # match your locally installed XSL stylesheets.
  353. XSL_BASE_URI = http://docbook.sourceforge.net/release/xsl/1.76.1
  354. XSL_XHTML_URI = $(XSL_BASE_URI)/xhtml/docbook.xsl
  355. all: $(ALLPREQ)
  356. pdf:
  357. ifeq ($(DOC),brief-yoctoprojectqs)
  358. @echo " "
  359. @echo "ERROR: You cannot generate a PDF file for brief-yoctoprojectqs."
  360. @echo " "
  361. else ifeq ($(DOC),mega-manual)
  362. @echo " "
  363. @echo "ERROR: You cannot generate a mega-manual PDF file."
  364. @echo " "
  365. else
  366. cd $(DOC); ../tools/poky-docbook-to-pdf $(DOC).xml ../template; cd ..
  367. endif
  368. html:
  369. ifeq ($(DOC),mega-manual)
  370. # See http://www.sagehill.net/docbookxsl/HtmlOutput.html
  371. @echo " "
  372. @echo "******** Building "$(DOC)
  373. @echo " "
  374. cd $(DOC); xsltproc $(XSLTOPTS) -o $(DOC).html $(DOC)-customization.xsl $(DOC).xml; cd ..
  375. @echo " "
  376. @echo "******** Using mega-manual.sed to process external links"
  377. @echo " "
  378. cd $(DOC); sed -f ../tools/mega-manual.sed < mega-manual.html > mega-output.html; cd ..
  379. @echo " "
  380. @echo "******** Cleaning up transient file mega-output.html"
  381. @echo " "
  382. cd $(DOC); rm mega-manual.html; mv mega-output.html mega-manual.html; cd ..
  383. else
  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. endif
  390. eclipse: BASE_DIR = html/$(DOC)/
  391. eclipse: eclipse-generate eclipse-resolve-links
  392. .PHONY : eclipse-generate eclipse-resolve-links
  393. eclipse-generate:
  394. ifeq ($(filter $(DOC), overview-manual sdk-manual bsp-guide dev-manual kernel-dev profile-manual ref-manual brief-yoctoprojectqs),)
  395. @echo " "
  396. @echo "ERROR: You can only create eclipse documentation"
  397. @echo " of the following documentation parts:"
  398. @echo " - overview-manual"
  399. @echo " - sdk-manual"
  400. @echo " - bsp-guide"
  401. @echo " - dev-manual"
  402. @echo " - kernel-dev"
  403. @echo " - profile-manual"
  404. @echo " - ref-manual"
  405. @echo " - brief-yoctoprojectqs"
  406. @echo " "
  407. else
  408. @echo " "
  409. @echo "******** Building eclipse help of "$(DOC)
  410. @echo " "
  411. cd $(DOC) && \
  412. xsltproc $(XSLTOPTS) \
  413. --stringparam base.dir '$(BASE_DIR)' \
  414. -o eclipse/$(DOC).html \
  415. $(DOC)-eclipse-customization.xsl $(DOC).xml && \
  416. mv eclipse/toc.xml eclipse/$(DOC)-toc.xml && \
  417. cp -rf $(FIGURES) eclipse/$(BASE_DIR) && \
  418. cd ..;
  419. $(call modify-eclipse)
  420. endif
  421. eclipse-resolve-links:
  422. @echo " "
  423. @echo "******** Using eclipse-help.sed to process external links"
  424. @echo " "
  425. $(foreach FILE, \
  426. $(wildcard $(DOC)/eclipse/html/$(DOC)/*.html), \
  427. $(shell sed -i -f tools/eclipse-help.sed $(FILE)))
  428. tarball: html
  429. @echo " "
  430. @echo "******** Creating Tarball of document files"
  431. @echo " "
  432. cd $(DOC); tar -cvzf $(DOC).tgz $(TARFILES); cd ..
  433. validate:
  434. cd $(DOC); xmllint --postvalid --xinclude --noout $(DOC).xml; cd ..
  435. publish:
  436. @if test -f $(DOC)/$(DOC).html; \
  437. then \
  438. echo " "; \
  439. echo "******** Publishing "$(DOC)".html"; \
  440. echo " "; \
  441. scp -r $(MANUALS) $(STYLESHEET) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \
  442. cd $(DOC); scp -r $(FIGURES) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \
  443. else \
  444. echo " "; \
  445. echo $(DOC)".html missing. Generate the file first then try again."; \
  446. echo " "; \
  447. fi
  448. clean:
  449. rm -rf $(MANUALS); rm $(DOC)/$(DOC).tgz;