summaryrefslogtreecommitdiffstats
path: root/build
blob: 4567515e4e29459fb42485b29d95246afdb0373a (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
#!/usr/bin/make -f

include ../source.mk

nop:
	@:

build:
	oh-autobuild </dev/null
	touch $@

install: build
	oh-autoinstall -- \
		DIST='$$(DESTDIR)' \
		MANDIR=/usr/share/man
	# Remove bcc and ELKS libc things for now.
	rm -Rf dest/usr/lib/bcc dest/usr/bin/bcc \
		dest/usr/share/man/man1/bcc.1 dest/usr/share/man/man1/elks*.1
	# objdump86, size86, and nm86 are all the same binary.
	set -e; \
	for prog in size86 nm86; do \
		rm "dest/usr/bin/$${prog}"; \
		ln -s objdump86 "dest/usr/bin/$${prog}"; \
	done
	oh-fixperms
	oh-strip
	oh-installfiles