summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-06-27 11:05:54 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-06-27 11:05:54 (EDT)
commit12b167c71e3a96e452cb3b76c64389dac57a7a4f (patch)
tree2eb02f3c7defe7b3bf14e5dccdf9113e108ba759 /build
parente60f1c8e757f486355eb3dbea9068d4ba4e0d41a (diff)
build: Add "install" target.
Diffstat (limited to 'build')
-rwxr-xr-xbuild8
1 files changed, 8 insertions, 0 deletions
diff --git a/build b/build
index ba50f9c..5a5b489 100755
--- a/build
+++ b/build
@@ -8,3 +8,11 @@ nop:
build:
oh-autobuild </dev/null
touch $@
+
+install: build
+ oh-autoinstall -- \
+ DIST='$$(DESTDIR)' \
+ MANDIR=/usr/share/man
+ # Remove bcc and ELKS libc things for now.
+ rm -Rf dest/usr/lib/bcc dest/usr/bin/bcc \
+ dest/usr/share/man/man1/bcc.1 dest/usr/share/man/man1/elks*.1