#!/usr/bin/make -f

include ../source.mk

nop:
	@:

build:
	oh-autoconfigure
	oh-autobuild
	touch $@

install: build
	oh-autoinstall
	# No static libraries or libtool archives:
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libpkgconf.a
	rm -f dest/usr/lib/$(OPK_HOST_ARCH)/libpkgconf.la
	# These are installed using ob-installdocs:
	rm -f dest/usr/share/doc/pkgconf/AUTHORS
	rm -f dest/usr/share/doc/pkgconf/README.md
	install -d -m 0755 dest/usr/libexec
	# Install cross-building wrapper:
	mv dest/usr/bin/pkgconf dest/usr/libexec/pkgconf
	install -m 0755 ../pkgconf-wrapper.sh dest/usr/bin/pkgconf
	oh-fixperms
	oh-strip
	oh-installfiles
	oh-shlibdeps