diff options
Diffstat (limited to 'documentation/cxx/tree')
-rw-r--r-- | documentation/cxx/tree/guide/makefile | 2 | ||||
-rw-r--r-- | documentation/cxx/tree/makefile | 35 | ||||
-rw-r--r-- | documentation/cxx/tree/manual/makefile | 2 |
3 files changed, 35 insertions, 4 deletions
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 |