summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
authorPatrick McDermott <patrick.mcdermott@libiquity.com>2021-01-05 21:50:41 (EST)
committer Patrick McDermott <patrick.mcdermott@libiquity.com>2021-01-05 21:50:41 (EST)
commit31376ad7324139201072914fc85d95f11e0dc196 (patch)
tree7b8f233efde6d3358ca4ad55d47b3b5d31e7a7e2 /build
Initial commit
Diffstat (limited to 'build')
-rwxr-xr-xbuild24
1 files changed, 24 insertions, 0 deletions
diff --git a/build b/build
new file mode 100755
index 0000000..8654173
--- /dev/null
+++ b/build
@@ -0,0 +1,24 @@
+#!/usr/bin/make -f
+
+include ../source.mk
+
+nop:
+ @:
+
+build:
+ # Needs pod2man to generate manual page from Perl script:
+ touch src/cpuinfo2cpuid.man
+ oh-autobuild
+ touch $@
+
+install: build
+ oh-autoinstall -- BUILDROOT="$${PWD}/dest"
+ # Perl script:
+ rm dest/usr/bin/cpuinfo2cpuid
+ rm dest/usr/share/man/man1/cpuinfo2cpuid.1.gz
+ # Useful documentation (-t requires BusyBox >= 1.23.0):
+ install -D -m 0644 -t dest/usr/share/doc/cpuid/ src/FAMILY.NOTES
+ oh-fixperms
+ oh-strip
+ oh-installfiles
+ oh-shlibdeps