summaryrefslogtreecommitdiff
path: root/examples/features/makefile
diff options
context:
space:
mode:
Diffstat (limited to 'examples/features/makefile')
-rw-r--r--examples/features/makefile9
1 files changed, 9 insertions, 0 deletions
diff --git a/examples/features/makefile b/examples/features/makefile
index c599afe..52d5d38 100644
--- a/examples/features/makefile
+++ b/examples/features/makefile
@@ -12,6 +12,7 @@ obj := $(addprefix $(out_base)/,$(cxx:.cxx=.o) $(cli:.cli=.o))
dep := $(obj:.o=.o.d)
driver := $(out_base)/driver
+install := $(out_base)/.install
clean := $(out_base)/.clean
# Build.
@@ -32,6 +33,14 @@ $(call include-dep,$(dep),$(obj),$(gen))
#
$(out_base)/: $(driver)
+# Install
+#
+$(install): path := $(subst $(src_root)/,,$(src_base))
+$(install):
+ $(call install-data,$(src_base)/driver.cxx,$(install_doc_dir)/cli/$(path)/driver.cxx)
+ $(call install-data,$(src_base)/options.cli,$(install_doc_dir)/cli/$(path)/options.cli)
+ $(call install-data,$(src_base)/README,$(install_doc_dir)/cli/$(path)/README)
+
# Clean.
#
$(clean): $(driver).o.clean \