summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2019-05-31 21:54:55 (EDT)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2019-05-31 21:54:55 (EDT)
commitc2c6bf6a98a22bc37df91ceb44008a47b5d297f1 (patch)
tree92421c104a814c092d089eaac13d1fc4bb43bb96
parent1a3efa0e7cd0e9b06b611eb7f5a227a78e4c5d04 (diff)
build: Set PREFIX
Also set macros at build time.
-rwxr-xr-xbuild9
1 files changed, 6 insertions, 3 deletions
diff --git a/build b/build
index f7ff3ab..b563c1d 100755
--- a/build
+++ b/build
@@ -1,15 +1,18 @@
#!/usr/bin/make -f
+macros = \
+ PREFIX='/usr' \
+ LIBPATH='/usr/lib/$(OPK_HOST_ARCH)'
+
nop:
@:
build:
- oh-autobuild -- -f makefile.shared
+ oh-autobuild -- -f makefile.shared $(macros)
touch $@
install: build
- oh-autoinstall -- -f makefile.shared \
- LIBPATH='/usr/lib/$(OPK_HOST_ARCH)'
+ oh-autoinstall -- -f makefile.shared $(macros)
rm dest/usr/lib/$(OPK_HOST_ARCH)/libtommath.la
oh-fixperms
oh-strip