summaryrefslogtreecommitdiff
path: root/doc/cxx/tree/makefile
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2013-11-15 08:59:47 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2013-11-15 08:59:47 +0200
commitfd32ca77e7beed31d601ef836be39cb6aa828a5f (patch)
tree43e8da0352c53f322d13dd33016798e9da049509 /doc/cxx/tree/makefile
parent366503ddde486f1674194dc0b7015c01f8de70cc (diff)
Rename documentation/ to doc/
Diffstat (limited to 'doc/cxx/tree/makefile')
-rw-r--r--doc/cxx/tree/makefile42
1 files changed, 42 insertions, 0 deletions
diff --git a/doc/cxx/tree/makefile b/doc/cxx/tree/makefile
new file mode 100644
index 0000000..7aaed95
--- /dev/null
+++ b/doc/cxx/tree/makefile
@@ -0,0 +1,42 @@
+# file : doc/cxx/tree/makefile
+# author : Boris Kolpackov <boris@codesynthesis.com>
+# copyright : Copyright (c) 2006-2011 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)/
+install := $(out_base)/.install
+dist := $(out_base)/.dist
+dist-win := $(out_base)/.dist-win
+cleandoc := $(out_base)/.cleandoc
+
+# Build.
+#
+$(default): $(addprefix $(out_base)/,$(addsuffix /,$(docs)))
+
+# Install & Dist.
+#
+dist-common := $(out_base)/.dist-common
+
+$(install): path := $(subst $(src_root)/doc/,,$(src_base))
+$(dist-common): path := $(subst $(src_root)/,,$(src_base))
+
+$(install): $(addprefix $(out_base)/,$(addsuffix /.install,$(docs)))
+ $(call install-dir,$(src_base)/reference,$(install_doc_dir)/xsd/$(path)/reference)
+
+$(dist-common):
+ $(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)))
+
+$(call include,$(bld_root)/install.make)
+
+$(foreach m,$(docs),$(call import,$(src_base)/$m/makefile))