aboutsummaryrefslogtreecommitdiff
path: root/examples/cxx/tree/custom/contacts/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/cxx/tree/custom/contacts/makefile')
-rw-r--r--examples/cxx/tree/custom/contacts/makefile14
1 files changed, 12 insertions, 2 deletions
diff --git a/examples/cxx/tree/custom/contacts/makefile b/examples/cxx/tree/custom/contacts/makefile
index c7e0856..ceb34d0 100644
--- a/examples/cxx/tree/custom/contacts/makefile
+++ b/examples/cxx/tree/custom/contacts/makefile
@@ -12,6 +12,7 @@ obj := $(addprefix $(out_base)/,$(cxx:.cxx=.o) $(xsd:.xsd=.o))
dep := $(obj:.o=.o.d)
driver := $(out_base)/driver
+install := $(out_base)/.install
dist := $(out_base)/.dist
dist-win := $(out_base)/.dist-win
clean := $(out_base)/.clean
@@ -52,11 +53,20 @@ $(call include-dep,$(dep))
#
$(out_base)/: $(driver)
-# Dist.
+
+# Install & Dist.
#
dist-common := $(out_base)/.dist-common
-$(dist) $(dist-win) $(dist-common): path := $(subst $(src_root)/,,$(src_base))
+$(install) $(dist) $(dist-win) $(dist-common): path := $(subst $(src_root)/,,$(src_base))
+
+$(install):
+ $(call install-data,$(src_base)/README,$(install_doc_dir)/xsd/$(path)/README)
+ $(call install-data,$(src_base)/driver.cxx,$(install_doc_dir)/xsd/$(path)/driver.cxx)
+ $(call install-data,$(src_base)/contacts.xsd,$(install_doc_dir)/xsd/$(path)/contacts.xsd)
+ $(call install-data,$(src_base)/contacts.xml,$(install_doc_dir)/xsd/$(path)/contacts.xml)
+ $(call install-data,$(src_base)/contacts-custom.hxx,$(install_doc_dir)/xsd/$(path)/contacts-custom.hxx)
+ $(call install-data,$(src_base)/contacts-custom.cxx,$(install_doc_dir)/xsd/$(path)/contacts-custom.cxx)
$(dist-common):
$(call install-data,$(src_base)/driver.cxx,$(dist_prefix)/$(path)/driver.cxx)