summaryrefslogtreecommitdiffstats
path: root/build
blob: 4225a44527e06ab7bcf94f0aafd93855b4edab25 (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
25
26
27
28
29
30
31
32
33
34
35
#!/usr/bin/make -f

include ../source.mk

ARGS = \
	PREFIX=/usr \
	LIBDIR=/usr/lib/$(OPK_HOST_ARCH) \
	MANDIR=/usr/share/man \
	BUILD_STATIC_LIB=0

nop:
	@:

build:
	oh-autobuild -- $(ARGS)
	touch $@

install: build
	oh-autoinstall -- $(ARGS)
	# Bash scripts (and their manual pages):
	rm \
		dest/usr/sbin/fancontrol \
		dest/usr/share/man/man8/fancontrol.8 \
		dest/usr/sbin/pwmconfig \
		dest/usr/share/man/man8/pwmconfig.8
	# Perl scripts (and their manual pages):
	rm \
		dest/usr/bin/sensors-conf-convert \
		dest/usr/share/man/man8/sensors-conf-convert.8 \
		dest/usr/sbin/sensors-detect \
		dest/usr/share/man/man8/sensors-detect.8
	oh-fixperms
	oh-strip
	oh-installfiles
	oh-shlibdeps