summaryrefslogtreecommitdiff
path: root/documentation
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-09-22 14:40:53 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-09-22 14:40:53 +0200
commit3c853bc264719437bcb2807d75ff5e9f9a3ea4f8 (patch)
treee9405b1078b0ed8a7be6c296d1a50653c1785b89 /documentation
parent8564df32f304589dfdffe46140a75f6e5d44523c (diff)
Add distribution-specific files, dist and dist-win targets
Diffstat (limited to 'documentation')
-rw-r--r--documentation/cxx/makefile2
-rw-r--r--documentation/cxx/parser/guide/makefile3
-rw-r--r--documentation/cxx/parser/makefile20
-rw-r--r--documentation/cxx/tree/guide/makefile2
-rw-r--r--documentation/cxx/tree/makefile35
-rw-r--r--documentation/cxx/tree/manual/makefile2
-rw-r--r--documentation/makefile16
7 files changed, 72 insertions, 8 deletions
diff --git a/documentation/cxx/makefile b/documentation/cxx/makefile
index 551aef4..244b9b4 100644
--- a/documentation/cxx/makefile
+++ b/documentation/cxx/makefile
@@ -5,7 +5,7 @@
include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make
-docs := parser/guide tree/guide tree/manual
+docs := parser tree
default := $(out_base)/
dist := $(out_base)/.dist
diff --git a/documentation/cxx/parser/guide/makefile b/documentation/cxx/parser/guide/makefile
index 1d85874..f1c96a6 100644
--- a/documentation/cxx/parser/guide/makefile
+++ b/documentation/cxx/parser/guide/makefile
@@ -10,13 +10,10 @@ dist := $(out_base)/.dist
dist-win := $(out_base)/.dist-win
cleandoc := $(out_base)/.cleandoc
-.PHONY: $(default) $(dist) $(dist-win) $(cleandoc)
-
# Build.
#
$(default): $(out_base)/cxx-parser-guide.ps $(out_base)/cxx-parser-guide.pdf
-
$(out_base)/cxx-parser-guide.ps: $(src_base)/index.xhtml \
$(src_base)/figure-1.png \
$(src_base)/guide.html2ps \
diff --git a/documentation/cxx/parser/makefile b/documentation/cxx/parser/makefile
new file mode 100644
index 0000000..69a9557
--- /dev/null
+++ b/documentation/cxx/parser/makefile
@@ -0,0 +1,20 @@
+# file : documentation/cxx/parser/makefile
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2006-2009 Code Synthesis Tools CC
+# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+include $(dir $(lastword $(MAKEFILE_LIST)))../../../build/bootstrap.make
+
+docs := guide
+
+default := $(out_base)/
+dist := $(out_base)/.dist
+dist-win := $(out_base)/.dist-win
+cleandoc := $(out_base)/.cleandoc
+
+$(default): $(addprefix $(out_base)/,$(addsuffix /,$(docs)))
+$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(docs)))
+$(dist-win): $(addprefix $(out_base)/,$(addsuffix /.dist-win,$(docs)))
+$(cleandoc): $(addprefix $(out_base)/,$(addsuffix /.cleandoc,$(docs)))
+
+$(foreach m,$(docs),$(call import,$(src_base)/$m/makefile))
diff --git a/documentation/cxx/tree/guide/makefile b/documentation/cxx/tree/guide/makefile
index 7c52f36..02a6e08 100644
--- a/documentation/cxx/tree/guide/makefile
+++ b/documentation/cxx/tree/guide/makefile
@@ -10,8 +10,6 @@ dist := $(out_base)/.dist
dist-win := $(out_base)/.dist-win
cleandoc := $(out_base)/.cleandoc
-.PHONY: $(default) $(dist) $(dist-win) $(cleandoc)
-
# Build.
#
$(default): $(out_base)/cxx-tree-guide.ps $(out_base)/cxx-tree-guide.pdf
diff --git a/documentation/cxx/tree/makefile b/documentation/cxx/tree/makefile
new file mode 100644
index 0000000..7063da8
--- /dev/null
+++ b/documentation/cxx/tree/makefile
@@ -0,0 +1,35 @@
+# file : documentation/cxx/tree/makefile
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2006-2009 Code Synthesis Tools CC
+# license : GNU GPL v2 + exceptions; see accompanying LICENSE file
+
+include $(dir $(lastword $(MAKEFILE_LIST)))../../../build/bootstrap.make
+
+docs := guide manual
+
+default := $(out_base)/
+dist := $(out_base)/.dist
+dist-win := $(out_base)/.dist-win
+cleandoc := $(out_base)/.cleandoc
+
+# Build.
+#
+$(default): $(addprefix $(out_base)/,$(addsuffix /,$(docs)))
+
+# Dist.
+#
+dist-common := $(out_base)/.dist-common
+
+$(dist-common): path := $(subst $(src_root)/,,$(src_base))
+$(dist-common):
+ $(call install-dir,$(src_base)/dbxml,$(dist_prefix)/$(path)/dbxml)
+ $(call install-dir,$(src_base)/reference,$(dist_prefix)/$(path)/reference)
+
+$(dist): $(dist-common) $(addprefix $(out_base)/,$(addsuffix /.dist,$(docs)))
+$(dist-win): $(dist-common) $(addprefix $(out_base)/,$(addsuffix /.dist-win,$(docs)))
+
+# Clean.
+#
+$(cleandoc): $(addprefix $(out_base)/,$(addsuffix /.cleandoc,$(docs)))
+
+$(foreach m,$(docs),$(call import,$(src_base)/$m/makefile))
diff --git a/documentation/cxx/tree/manual/makefile b/documentation/cxx/tree/manual/makefile
index 1586cfb..0101e69 100644
--- a/documentation/cxx/tree/manual/makefile
+++ b/documentation/cxx/tree/manual/makefile
@@ -10,8 +10,6 @@ dist := $(out_base)/.dist
dist-win := $(out_base)/.dist-win
cleandoc := $(out_base)/.cleandoc
-.PHONY: $(default) $(dist) $(dist-win) $(cleandoc)
-
# Build.
#
$(default): $(out_base)/cxx-tree-manual.ps $(out_base)/cxx-tree-manual.pdf
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