aboutsummaryrefslogtreecommitdiff
path: root/documentation/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/makefile')
-rw-r--r--documentation/makefile16
1 files changed, 16 insertions, 0 deletions
diff --git a/documentation/makefile b/documentation/makefile
index 7d581ac..766587a 100644
--- a/documentation/makefile
+++ b/documentation/makefile
@@ -7,6 +7,8 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../build/bootstrap.make
default := $(out_base)/
install := $(out_base)/.install
+dist := $(out_base)/.dist
+dist-win := $(out_base)/.dist-win
cleandoc := $(out_base)/.cleandoc
$(default): $(out_base)/cxx/
@@ -21,6 +23,20 @@ $(install):
$(call install-data,$(src_base)/xsd.xhtml,$(install_doc_dir)/xsd/xsd.xhtml)
$(call install-data,$(src_base)/xsd.1,$(install_man_dir)/man1/xsd.1)
+# Dist.
+#
+dist-common := $(out_base)/.dist-common
+
+$(dist-common):
+ $(call install-data,$(src_base)/default.css,$(dist_prefix)/documentation/default.css)
+ $(call install-data,$(src_base)/xsd.xhtml,$(dist_prefix)/documentation/xsd.xhtml)
+ $(call install-data,$(src_base)/xsd.1,$(dist_prefix)/documentation/xsd.1)
+ $(call install-data,$(src_base)/future.xhtml,$(dist_prefix)/documentation/future.xhtml)
+ $(call install-data,$(src_base)/schema-authoring-guide.xhtml,$(dist_prefix)/documentation/schema-authoring-guide.xhtml)
+
+$(dist): $(dist-common) $(out_base)/cxx/.dist
+$(dist-win): $(dist-common) $(out_base)/cxx/.dist
+
# Clean.
#
$(cleandoc): $(src_base)/cxx/.cleandoc