summaryrefslogtreecommitdiffstats
path: root/build
blob: 86541738ec43244a7f467ef353e52b3e17fcab67 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
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