From fccba6f6bc4c3960473423656563045dcc6c2067 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Wed, 4 Nov 2009 09:57:46 +0200 Subject: Implement more accurate doc installation --- documentation/cxx/tree/makefile | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'documentation/cxx/tree/makefile') diff --git a/documentation/cxx/tree/makefile b/documentation/cxx/tree/makefile index 7063da8..b71a738 100644 --- a/documentation/cxx/tree/makefile +++ b/documentation/cxx/tree/makefile @@ -8,6 +8,7 @@ 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 @@ -16,11 +17,17 @@ cleandoc := $(out_base)/.cleandoc # $(default): $(addprefix $(out_base)/,$(addsuffix /,$(docs))) -# Dist. +# Install & Dist. # dist-common := $(out_base)/.dist-common +$(install): path := $(subst $(src_root)/documentation/,,$(src_base)) $(dist-common): path := $(subst $(src_root)/,,$(src_base)) + +$(install): $(addprefix $(out_base)/,$(addsuffix /.install,$(docs))) + $(call install-dir,$(src_base)/dbxml,$(install_doc_dir)/xsd/$(path)/dbxml) + $(call install-dir,$(src_base)/reference,$(install_doc_dir)/xsd/$(path)/reference) + $(dist-common): $(call install-dir,$(src_base)/dbxml,$(dist_prefix)/$(path)/dbxml) $(call install-dir,$(src_base)/reference,$(dist_prefix)/$(path)/reference) @@ -32,4 +39,6 @@ $(dist-win): $(dist-common) $(addprefix $(out_base)/,$(addsuffix /.dist-win,$(do # $(cleandoc): $(addprefix $(out_base)/,$(addsuffix /.cleandoc,$(docs))) +$(call include,$(bld_root)/install.make) + $(foreach m,$(docs),$(call import,$(src_base)/$m/makefile)) -- cgit v1.1