From 3c853bc264719437bcb2807d75ff5e9f9a3ea4f8 Mon Sep 17 00:00:00 2001 From: Boris Kolpackov Date: Tue, 22 Sep 2009 14:40:53 +0200 Subject: Add distribution-specific files, dist and dist-win targets --- documentation/cxx/tree/makefile | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 documentation/cxx/tree/makefile (limited to 'documentation/cxx/tree/makefile') 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 +# 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)) -- cgit v1.1