summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorP. J. McDermott <pj@pehjota.net>2015-09-06 09:25:43 (EDT)
committer P. J. McDermott <pj@pehjota.net>2015-09-06 09:25:43 (EDT)
commit9b7adbe1698fd580edd94f5713c23ba563325cd0 (patch)
tree789c40a4b1bad06fe270134eab45217d08686ec3 /build
Initial commit
Diffstat (limited to 'build')
-rwxr-xr-xbuild35
1 files changed, 35 insertions, 0 deletions
diff --git a/build b/build
new file mode 100755
index 0000000..d8c2541
--- /dev/null
+++ b/build
@@ -0,0 +1,35 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+configs = internal
+
+nop:
+ @:
+
+build:
+ set -e; \
+ for c in $(configs); do \
+ cp -Rp src/ "src-$${c}"; \
+ oh-autobuild -s "src-$${c}" -- $$(cat "../config/$${c}"); \
+ done
+ touch $@
+
+install: build
+ mkdir -p flashrom-doc.data/usr/share/man/man8
+ set -e; \
+ for c in $(configs); do \
+ oh-autoinstall -s "src-$${c}" -d "flashrom-$${c}.data" -- \
+ PREFIX=/usr; \
+ mv "flashrom-$${c}.data/usr/sbin/flashrom" \
+ "flashrom-$${c}.data/usr/sbin/flashrom.$${c}"; \
+ mv "flashrom-$${c}.data/usr/share/man/man8/flashrom.8" \
+ flashrom-doc.data/usr/share/man/man8; \
+ rmdir \
+ "flashrom-$${c}.data/usr/share/man/man8" \
+ "flashrom-$${c}.data/usr/share/man" \
+ "flashrom-$${c}.data/usr/share"; \
+ oh-fixperms -d "flashrom-$${c}.data"; \
+ oh-strip -d "flashrom-$${c}.data"; \
+ done
+ oh-fixperms -d flashrom-doc.data