aboutsummaryrefslogtreecommitdiffstats
path: root/docs/Makefile
diff options
context:
space:
mode:
authorIan Jackson <ian.jackson@eu.citrix.com>2011-11-29 15:48:08 +0000
committerIan Jackson <ian.jackson@eu.citrix.com>2011-11-29 15:48:08 +0000
commitec2c0a84c9ca9086c5230966d72d7f5569cb67d6 (patch)
treeb808956de98ff82a46646b1d06a22ca18b13333d /docs/Makefile
parent9cf210024a2d58db2d192503f22de6e69096da64 (diff)
downloadxen-ec2c0a84c9ca9086c5230966d72d7f5569cb67d6.tar.gz
xen-ec2c0a84c9ca9086c5230966d72d7f5569cb67d6.tar.bz2
xen-ec2c0a84c9ca9086c5230966d72d7f5569cb67d6.zip
docs/html/: Arrange for automatic build of hypercall docs
- Use index.html rather than a stamp file. - Automatically generate dependencies. - Wire into the docs build system Signed-off-by: Ian Jackson <ian.jackson@eu.citrix.com> Acked-by: Ian Campbell <ian.campbell@citrix.com> Committed-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
Diffstat (limited to 'docs/Makefile')
-rw-r--r--docs/Makefile9
1 files changed, 6 insertions, 3 deletions
diff --git a/docs/Makefile b/docs/Makefile
index ace60bacda..28a5b10917 100644
--- a/docs/Makefile
+++ b/docs/Makefile
@@ -18,7 +18,8 @@ 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 %.txt,html/%.txt,$(wildcard misc/*.txt))
+ $(patsubst %.txt,html/%.txt,$(wildcard misc/*.txt)) \
+ html/hypercall/index.html
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)) \
@@ -154,13 +155,15 @@ html/man/%.5.html: man/%.pod.5 Makefile
$(POD2HTML) --infile=$< --outfile=$@.tmp
$(call move-if-changed,$@.tmp,$@)
-html/hypercall/stamp:
+html/hypercall/index.html: ./xen-headers
+ rm -rf $(@D)
@$(INSTALL_DIR) $(@D)
./xen-headers -O $(@D) \
-T 'arch-x86_64 - Xen public headers' \
-X arch-ia64 -X arch-x86_32 -X xen-x86_32 \
../xen include/public include/xen/errno.h
- touch $@
+
+-include html/hypercall/.deps
txt/%.txt: %.txt
$(INSTALL_DIR) $(@D)