diff options
Diffstat (limited to 'documentation/cxx')
-rw-r--r-- | documentation/cxx/makefile | 2 | ||||
-rw-r--r-- | documentation/cxx/parser/guide/makefile | 3 | ||||
-rw-r--r-- | documentation/cxx/parser/makefile | 20 | ||||
-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 |
6 files changed, 56 insertions, 8 deletions
diff --git a/documentation/cxx/makefile b/documentation/cxx/makefile index 551aef4..244b9b4 100644 --- a/documentation/cxx/makefile +++ b/documentation/cxx/makefile @@ -5,7 +5,7 @@ include $(dir $(lastword $(MAKEFILE_LIST)))../../build/bootstrap.make -docs := parser/guide tree/guide tree/manual +docs := parser tree default := $(out_base)/ dist := $(out_base)/.dist diff --git a/documentation/cxx/parser/guide/makefile b/documentation/cxx/parser/guide/makefile index 1d85874..f1c96a6 100644 --- a/documentation/cxx/parser/guide/makefile +++ b/documentation/cxx/parser/guide/makefile @@ -10,13 +10,10 @@ 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-parser-guide.ps $(out_base)/cxx-parser-guide.pdf - $(out_base)/cxx-parser-guide.ps: $(src_base)/index.xhtml \ $(src_base)/figure-1.png \ $(src_base)/guide.html2ps \ diff --git a/documentation/cxx/parser/makefile b/documentation/cxx/parser/makefile new file mode 100644 index 0000000..69a9557 --- /dev/null +++ b/documentation/cxx/parser/makefile @@ -0,0 +1,20 @@ +# file : documentation/cxx/parser/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 + +default := $(out_base)/ +dist := $(out_base)/.dist +dist-win := $(out_base)/.dist-win +cleandoc := $(out_base)/.cleandoc + +$(default): $(addprefix $(out_base)/,$(addsuffix /,$(docs))) +$(dist): $(addprefix $(out_base)/,$(addsuffix /.dist,$(docs))) +$(dist-win): $(addprefix $(out_base)/,$(addsuffix /.dist-win,$(docs))) +$(cleandoc): $(addprefix $(out_base)/,$(addsuffix /.cleandoc,$(docs))) + +$(foreach m,$(docs),$(call import,$(src_base)/$m/makefile)) 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 |