diff options
author | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-22 14:40:53 +0200 |
---|---|---|
committer | Boris Kolpackov <boris@codesynthesis.com> | 2009-09-22 14:40:53 +0200 |
commit | 3c853bc264719437bcb2807d75ff5e9f9a3ea4f8 (patch) | |
tree | e9405b1078b0ed8a7be6c296d1a50653c1785b89 /documentation/cxx/tree/makefile | |
parent | 8564df32f304589dfdffe46140a75f6e5d44523c (diff) |
Add distribution-specific files, dist and dist-win targets
Diffstat (limited to 'documentation/cxx/tree/makefile')
-rw-r--r-- | documentation/cxx/tree/makefile | 35 |
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)) |