summaryrefslogtreecommitdiffstats
path: root/build
diff options
context:
space:
mode:
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