diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-10-27 09:55:22 +0100 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-10-27 09:55:22 +0100 |
commit | 7a545e009075377a6eff2c5df8f65e9323c285b2 (patch) | |
tree | 50269a4be18fe7f9c1b2bbaf22d0ad1b7876a585 | |
parent | 737d28ae5466e1f3e79da8713866dcd1a1dc39a5 (diff) | |
download | xen-7a545e009075377a6eff2c5df8f65e9323c285b2.tar.gz xen-7a545e009075377a6eff2c5df8f65e9323c285b2.tar.bz2 xen-7a545e009075377a6eff2c5df8f65e9323c285b2.zip |
docs: install text documentation
Including markdown docs.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
-rw-r--r-- | .hgignore | 1 | ||||
-rw-r--r-- | docs/Makefile | 18 |
2 files changed, 18 insertions, 1 deletions
@@ -57,6 +57,7 @@ ^docs/user/labels\.pl$ ^docs/user/user\.css$ ^docs/user/user\.html$ +^docs/txt/.*$ ^docs/xen-api/vm_lifecycle.eps$ ^docs/xen-api/xenapi-datamodel-graph.eps$ ^docs/xen-api/xenapi.out$ diff --git a/docs/Makefile b/docs/Makefile index 9cee2a3cf7..2054541f08 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -16,13 +16,16 @@ DOC_PS := $(patsubst src/%.tex,ps/%.ps,$(DOC_TEX)) DOC_PDF := $(patsubst src/%.tex,pdf/%.pdf,$(DOC_TEX)) DOC_HTML := $(patsubst src/%.tex,html/%/index.html,$(DOC_TEX)) \ $(patsubst %.markdown,html/%.html,$(DOC_MARKDOWN)) +DOC_TXT := $(patsubst %.txt,txt/%.txt,$(wildcard misc/*.txt)) \ + $(patsubst %.markdown,txt/%.txt,$(DOC_MARKDOWN)) + GFX = $(patsubst %.fig, %.eps, $(wildcard figs/*.fig)) .PHONY: all all: build .PHONY: build -build: ps pdf html man-pages +build: ps pdf html txt man-pages @if which $(DOT) 1>/dev/null 2>/dev/null ; then \ $(MAKE) -C xen-api build ; else \ echo "Graphviz (dot) not installed; skipping xen-api." ; fi @@ -40,6 +43,9 @@ pdf: $(DOC_PDF) .PHONY: html html: $(DOC_HTML) +.PHONY: txt +txt: $(DOC_TXT) + .PHONY: python-dev-docs python-dev-docs: @mkdir -v -p api/tools/python @@ -122,3 +128,13 @@ html/%.html: %.markdown echo "Running markdown to generate $*.html ... "; \ $(MARKDOWN) $< > $@.tmp ; \ $(call move-if-changed,$@.tmp,$@) ; fi + +txt/%.txt: %.txt + $(INSTALL_DIR) $(@D) + cp $< $@.tmp + $(call move-if-changed,$@.tmp,$@) + +txt/%.txt: %.markdown + $(INSTALL_DIR) $(@D) + cp $< $@.tmp + $(call move-if-changed,$@.tmp,$@) |