aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2009-10-11 21:16:24 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2009-10-11 21:16:24 +0200
commit923ab580cf6e5e59bad2fa5bda47a8be69ef56ca (patch)
tree3f5bcf8144cbc031376cbe5f2185e1df95924ef6
parentb2045daef08cdd6d6fbb56935170507e9d47e679 (diff)
Add install target
-rw-r--r--cutl/makefile8
-rw-r--r--makefile3
2 files changed, 9 insertions, 2 deletions
diff --git a/cutl/makefile b/cutl/makefile
index 1635311..92c7e35 100644
--- a/cutl/makefile
+++ b/cutl/makefile
@@ -20,6 +20,8 @@ cxx_od := $(cxx_obj:.o=.o.d)
cutl.l := $(out_base)/cutl.l
cutl.l.cpp-options := $(out_base)/cutl.l.cpp-options
+default := $(out_base)/
+install := $(out_base)/.install
clean := $(out_base)/.clean
@@ -37,6 +39,12 @@ $(call include-dep,$(cxx_od))
#
$(out_base)/: $(cutl.l)
+# Install.
+#
+$(install): $(cutl.l)
+ $(call install-lib,$<,$(install_lib_dir))
+ $(call install-dir,$(src_base),$(install_inc_dir)/cutl,\
+'(' -name '*.hxx' -o -name '*.ixx' -o -name '*.txx' ')')
# Clean.
#
diff --git a/makefile b/makefile
index ce34e39..c33b303 100644
--- a/makefile
+++ b/makefile
@@ -20,8 +20,7 @@ $(test): $(out_base)/tests/.test
# Install.
#
-$(install): $(out_base)/cutl/.install \
- $(out_base)/doc/.install
+$(install): $(out_base)/cutl/.install
$(call install-data,$(src_base)/LICENSE,$(install_doc_dir)/libcutl/LICENSE)
$(call install-data,$(src_base)/NEWS,$(install_doc_dir)/libcutl/NEWS)
$(call install-data,$(src_base)/README,$(install_doc_dir)/libcutl/README)