docs: install txt files as html
authorIan Campbell <ian.campbell@citrix.com>
Tue, 29 Nov 2011 14:17:27 +0000 (14:17 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Tue, 29 Nov 2011 14:17:27 +0000 (14:17 +0000)
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>
docs/INDEX
docs/Makefile

index f3b87a20b160fef1ee3036fbffcc154e58f9f7ad..3ed1e99d090087a344f738bed937278d7bad3133 100644 (file)
@@ -1,5 +1,7 @@
 misc/hvm-emulated-unplug       Xen HVM emulated device unplug protocol
 
+misc/console.txt               Xen PV Console notes
+
 # These are not all that useful anymore, hide them from the index
 reference/interface/index      NO-INDEX
 reference/user/index           NO-INDEX
index da9b9859e066a16b6db91f15ea6beb10dbc4bea1..7007e4c982e0d19d6e981b73e8b1fdcfb093c0e5 100644 (file)
@@ -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