From 019c868596988e39327a8663b69a75e9d35cdaf8 Mon Sep 17 00:00:00 2001 From: Scott Rifenbark Date: Thu, 13 Mar 2014 11:20:04 -0600 Subject: bitbake: Makefile: Added publish tag so the book can be published. (Bitbake rev: a895f76836c867822f5be33546e51b285e7016e0) Signed-off-by: Scott Rifenbark Signed-off-by: Richard Purdie --- bitbake/doc/Makefile | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/bitbake/doc/Makefile b/bitbake/doc/Makefile index 29774e41cc..6b2af67326 100644 --- a/bitbake/doc/Makefile +++ b/bitbake/doc/Makefile @@ -22,7 +22,7 @@ # make pdf DOC=user-manual # # The first example generates the HTML and PDF versions of the User Manual. -# The second example generates the HTML version only of the User Manual. +# The second example generates the HTML version only of the User Manual. # ifeq ($(DOC),user-manual) @@ -73,5 +73,19 @@ tarball: html validate: cd $(DOC); xmllint --postvalid --xinclude --noout $(DOC).xml; cd .. +publish: + @if test -f $(DOC)/$(DOC).html; \ + then \ + echo " "; \ + echo "******** Publishing "$(DOC)".html"; \ + echo " "; \ + scp -r $(MANUALS) $(STYLESHEET) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \ + cd $(DOC); scp -r $(FIGURES) docs.yp:/var/www/www.yoctoproject.org-docs/$(VER)/$(DOC); \ + else \ + echo " "; \ + echo $(DOC)".html missing. Generate the file first then try again."; \ + echo " "; \ + fi + clean: rm -rf $(MANUALS); rm $(DOC)/$(DOC).tgz; -- cgit v1.2.3-54-g00ecf