#! /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