summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-04-02 01:56:10 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-04-02 01:56:10 (EDT)
commitbce1fd95ebb1229a393381d9fc4f3258abe2fc56 (patch)
treebcc79dc4c61651457d91510f3c4886e6b6630ae4 /build
parent8598983afa0d3403f18f1b256bc123b7c5360e99 (diff)
build: Build out-of-tree
Diffstat (limited to 'build')
-rwxr-xr-xbuild22
1 files changed, 14 insertions, 8 deletions
diff --git a/build b/build
index a97eceb..c1d86f4 100755
--- a/build
+++ b/build
@@ -2,20 +2,26 @@
include ../source.mk
+common_opts = \
+ --disable-shared \
+ --disable-curl --disable-ssl-curl \
+ --enable-sha256 \
+ --with-opkglibdir=/var/lib
+
nop:
@:
-build:
- oh-autoconfigure -- \
- --disable-shared \
- --disable-curl --disable-ssl-curl --disable-gpg \
- --enable-sha256 \
- --with-opkglibdir=/var/lib
- oh-autobuild
+build-opkg:
+ oh-autoconfigure -B obj-opkg -- \
+ $(common_opts) \
+ --disable-gpg
+ oh-autobuild -B obj-opkg
touch $@
+build: build-opkg
+
install: build
- oh-autoinstall
+ oh-autoinstall -B obj-opkg
rm -Rf dest/usr/include/ \
dest/usr/lib/$(OPK_HOST_ARCH)/pkgconfig/ \
dest/usr/lib/$(OPK_HOST_ARCH)/libopkg.a \