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

build-arch:
	cd src && \
		./configure --prefix=/usr \
		--build=$${OB_BUILD_ARCH_GNU} --host=$${OB_HOST_ARCH_GNU} && \
		make

install-arch:
	cd src && \
		make DESTDIR="$$(pwd)/../dest" install-exec && \
		cd ..
	oh-strip -g
	oh-installfiles -B

build-indep:
	cd src && \
		./configure --prefix=/usr

install-indep:
	cd src && \
		make DESTDIR="$$(pwd)/../dest" install-data && \
		cd ..
	oh-installfiles -A

build: build-arch build-indep

install: install-arch install-indep