aboutsummaryrefslogtreecommitdiff
path: root/documentation/cxx/tree/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'documentation/cxx/tree/makefile')
-rw-r--r--documentation/cxx/tree/makefile35
1 files changed, 35 insertions, 0 deletions
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))