summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2014-10-13 14:52:45 (EDT)
committer P. J. McDermott <pj@pehjota.net>2014-10-13 14:52:45 (EDT)
commitfa70aef7c61307d442cfb7c5769e30df8b54867a (patch)
treec6426a6b6e19eec757da3d6a6b1cc50460e84cdc /build
parent82425d6978fd30dab700035e3dcb2b40556c124e (diff)
build: Add "build" and "install" targets
Diffstat (limited to 'build')
-rwxr-xr-xbuild15
1 files changed, 15 insertions, 0 deletions
diff --git a/build b/build
index 2a40656..66ffce6 100755
--- a/build
+++ b/build
@@ -4,3 +4,18 @@ include ../source.mk
nop:
@:
+
+build:
+ oh-autoconfigure
+ oh-autobuild
+ if [ 'x$(OPK_BUILD_ARCH)' = 'x$(OPK_HOST_ARCH)' ]; then \
+ oh-autotest; \
+ fi
+ touch $@
+
+install: build
+ oh-autoinstall
+ mv dest/usr/bin/patch dest/usr/bin/patch.gnu
+ oh-fixperms
+ oh-strip
+ oh-installfiles