aboutsummaryrefslogtreecommitdiff
path: root/dist/libxsde
diff options
context:
space:
mode:
authorBoris Kolpackov <boris@codesynthesis.com>2011-12-13 15:12:15 +0200
committerBoris Kolpackov <boris@codesynthesis.com>2011-12-13 15:12:15 +0200
commitbacc1bb9b8c07fbfc7996d48aae70cc861c9b43f (patch)
treeb4237cb45616a8388e2f48847aab714884e6f19f /dist/libxsde
parent9a8080a5fbe216f79245d0a90cc725a56381a4b5 (diff)
Add install target to the dist GNU makefiles
Diffstat (limited to 'dist/libxsde')
-rw-r--r--dist/libxsde/xsde/makefile17
1 files changed, 17 insertions, 0 deletions
diff --git a/dist/libxsde/xsde/makefile b/dist/libxsde/xsde/makefile
index 24f9287..e586977 100644
--- a/dist/libxsde/xsde/makefile
+++ b/dist/libxsde/xsde/makefile
@@ -636,6 +636,23 @@ gen:
test: libxsde.a
@:
+# Install.
+#
+install_prefix := /usr/local
+install_lib := $(install_prefix)/lib
+install_include := $(install_prefix)/include
+
+.PHONY: install
+install: libxsde.a
+ ../../install-sh -d -m 755 $(install_lib)
+ ../../install-sh -m 644 libxsde.a $(install_lib)/libxsde.a
+ ../../install-sh -d -m 755 $(install_include)
+ find . -type d | sed -e 's%^\.%$(install_include)%' \
+| xargs -n 1 ../../install-sh -d -m 755
+ find . -name '*.h' -o -name '*.hxx' -o -name '*.ixx' -o -name '*.txx' \
+| sed -e 's%^\./\(.*\)%\1 $(install_include)/\1%' \
+| xargs -n 2 ../../install-sh -m 644
+
# Clean.
#
.PHONY: clean cleanobj