aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorScott Rifenbark <scott.m.rifenbark@intel.com>2014-03-13 11:20:04 -0600
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-25 13:22:17 +0000
commita895f76836c867822f5be33546e51b285e7016e0 (patch)
tree8649ac79348fed775e2e7025beb34a920bc082e7
parent9dd53bd4355148916a89cf672b6c5db5f6b1ae35 (diff)
downloadbitbake-a895f76836c867822f5be33546e51b285e7016e0.tar.gz
bitbake-a895f76836c867822f5be33546e51b285e7016e0.tar.bz2
bitbake-a895f76836c867822f5be33546e51b285e7016e0.zip
Makefile: Added publish tag so the book can be published.
Signed-off-by: Scott Rifenbark <scott.m.rifenbark@intel.com>
-rw-r--r--doc/Makefile16
1 files changed, 15 insertions, 1 deletions
diff --git a/doc/Makefile b/doc/Makefile
index 29774e41c..6b2af6732 100644
--- a/doc/Makefile
+++ b/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;