summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorP. J. McDermott <pjm@nac.net>2013-10-11 14:23:09 (EDT)
committer P. J. McDermott <pjm@nac.net>2013-10-11 14:23:09 (EDT)
commit88af01f4e2c7ccb4ca2825db3830984939e1f6e0 (patch)
treed442ecd2b257f9f87bb371dfeeb15509f65e8adf
parent867bcfde08acb6a0df45a6b2629d715b97b1ced7 (diff)
build: Add install target.
-rwxr-xr-xbuild26
1 files changed, 26 insertions, 0 deletions
diff --git a/build b/build
index 5adffa9..c0d8184 100755
--- a/build
+++ b/build
@@ -20,3 +20,29 @@ build: configure
oh-autobuild -B obj
oh-autobuild -B obj -T check-gdb
touch $@
+
+install: build
+ oh-autoinstall -B obj
+ # Remove BFD files.
+ rm -f \
+ dest/usr/include/*.h \
+ dest/usr/lib/$(OPK_HOST_ARCH)/libbfd.* \
+ dest/usr/lib/$(OPK_HOST_ARCH)/libopcodes.* \
+ dest/usr/share/info/bfd.info \
+ dest/usr/share/locale/*/LC_MESSAGES/bfd.mo \
+ dest/usr/share/locale/*/LC_MESSAGES/opcodes.mo
+ # Remove libiberty.
+ rm -f \
+ dest/usr/lib/lib/libiberty.*
+ # Remove GNU Info index.
+ rm -f dest/usr/share/info/dir
+ # Remove Python bindings.
+ rm -Rf dest/usr/share/gdb/python
+ # Remove development files.
+ rm -f dest/usr/include/gdb/jit-reader.h
+ # Make /etc/gdbinit.
+ mkdir -p dest/etc/gdb
+ printf '# System-wide GDB initialization file.\n' >dest/etc/gdb/gdbinit
+ oh-fixperms
+ oh-strip
+ oh-installfiles