summaryrefslogtreecommitdiffstats
path: root/build
blob: 07762d5a0312f143230272874b266a77bb6092a9 (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:
	@:

configure:
	oh-autoconfigure
	touch $@

build: configure
	oh-autobuild
	touch $@

install: build
	oh-autoinstall
	mv dest/usr/bin/xz dest/usr/bin/xz.tuk
	set -e; \
	for link in unxz xzcat lzma unlzma lzcat; do \
		rm -f "dest/usr/bin/$${link}"; \
		ln -sf xz.tuk "dest/usr/bin/$${link}.tuk"; \
	done
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/liblzma.la
	oh-fixperms
	oh-strip
	oh-installfiles