summaryrefslogtreecommitdiff
path: root/documentation/cxx/tree/manual
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-11-04 09:57:46 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-11-04 09:57:46 +0200
commitfccba6f6bc4c3960473423656563045dcc6c2067 (patch)
treee25510754a46ab25c22b21800cb7b57db3c2c272 /documentation/cxx/tree/manual
parent7899564da489006f40f23c789b850b2f843de6cf (diff)
Implement more accurate doc installation
Diffstat (limited to 'documentation/cxx/tree/manual')
-rw-r--r--documentation/cxx/tree/manual/makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/documentation/cxx/tree/manual/makefile b/documentation/cxx/tree/manual/makefile
index 0101e69..ca6e0fb 100644
--- a/documentation/cxx/tree/manual/makefile
+++ b/documentation/cxx/tree/manual/makefile
@@ -6,6 +6,7 @@
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
@@ -23,9 +24,16 @@ $(out_base)/cxx-tree-manual.ps: $(src_base)/index.xhtml \
$(out_base)/cxx-tree-manual.pdf: $(out_base)/cxx-tree-manual.ps | $(out_base)/.
$(call message,ps2pdf $<,ps2pdf14 $< $@)
-# Dist.
+# Install & Dist.
#
+$(install): path := $(subst $(src_root)/documentation/,,$(src_base))
$(dist): path := $(subst $(src_root)/,,$(src_base))
+
+$(install): $(out_base)/cxx-tree-manual.ps $(out_base)/cxx-tree-manual.pdf
+ $(call install-data,$(src_base)/index.xhtml,$(install_doc_dir)/xsd/$(path)/index.xhtml)
+ $(call install-data,$(out_base)/cxx-tree-manual.ps,$(install_doc_dir)/xsd/$(path)/cxx-tree-manual.ps)
+ $(call install-data,$(out_base)/cxx-tree-manual.pdf,$(install_doc_dir)/xsd/$(path)/cxx-tree-manual.pdf)
+
$(dist): $(out_base)/cxx-tree-manual.ps $(out_base)/cxx-tree-manual.pdf
$(call install-data,$(src_base)/index.xhtml,$(dist_prefix)/$(path)/index.xhtml)
$(call install-data,$(out_base)/cxx-tree-manual.ps,$(dist_prefix)/$(path)/cxx-tree-manual.ps)