diff options
author | Ian Campbell <ian.campbell@citrix.com> | 2011-11-29 14:17:27 +0000 |
---|---|---|
committer | Ian Campbell <ian.campbell@citrix.com> | 2011-11-29 14:17:27 +0000 |
commit | 6464e538346ae42e6723d0c6415b98bcd281ef9f (patch) | |
tree | ba78b39be8605218d78882e811c082d5b2e7327f /docs/Makefile | |
parent | 1006f5c4e1bbb2d374a5996899e826ad7d007dc6 (diff) | |
download | xen-6464e538346ae42e6723d0c6415b98bcd281ef9f.tar.gz xen-6464e538346ae42e6723d0c6415b98bcd281ef9f.tar.bz2 xen-6464e538346ae42e6723d0c6415b98bcd281ef9f.zip |
docs: install txt files as html
A browser will display them just fine.
Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Committed-by: Ian Jackson <ian.jackson.citrix.com>
Acked-by: Ian Jackson <ian.jackson.citrix.com>
Diffstat (limited to 'docs/Makefile')
-rw-r--r-- | docs/Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/docs/Makefile b/docs/Makefile index da9b9859e0..7007e4c982 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -17,7 +17,8 @@ DOC_PDF := $(patsubst src/%.tex,pdf/%.pdf,$(DOC_TEX)) DOC_HTML := $(patsubst src/%.tex,html/reference/%/index.html,$(DOC_TEX)) \ $(patsubst %.markdown,html/%.html,$(DOC_MARKDOWN)) \ $(patsubst man/%.pod.1,html/man/%.1.html,$(DOC_MAN1SRC)) \ - $(patsubst man/%.pod.5,html/man/%.5.html,$(DOC_MAN5SRC)) + $(patsubst man/%.pod.5,html/man/%.5.html,$(DOC_MAN5SRC)) \ + $(patsubst %.txt,html/%.txt,$(wildcard misc/*.txt)) DOC_TXT := $(patsubst %.txt,txt/%.txt,$(wildcard misc/*.txt)) \ $(patsubst %.markdown,txt/%.txt,$(DOC_MARKDOWN)) \ $(patsubst man/%.pod.1,txt/man/%.1.txt,$(DOC_MAN1SRC)) \ @@ -139,6 +140,10 @@ html/%.html: %.markdown $(call move-if-changed,$@.tmp,$@) ; else \ echo "markdown not installed; skipping $*.html."; fi +html/%.txt: %.txt + @$(INSTALL_DIR) $(@D) + cp $< $@ + html/man/%.1.html: man/%.pod.1 Makefile $(INSTALL_DIR) $(@D) $(POD2HTML) --infile=$< --outfile=$@.tmp |