#!/usr/bin/make -f
# -*- makefile -*-
# Sample debian/rules that uses debhelper.
# This file was originally written by Joey Hess and Craig Small.
# As a special exception, when this file is copied by dh-make into a
# dh-make output file, you may use that output file without restriction.
# This special exception was added by Craig Small in version 0.37 of dh-make.

# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1

include /usr/share/dpkg/architecture.mk

%:
	dh $@

override_dh_install:
	./debian/build_headers.sh
	mkdir -p debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
	cp opt/vc/lib/libelftoolchain.so debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/
	dh_install

override_dh_fixperms:
	dh_fixperms

override_dh_strip:
	# don't strip anything

override_dh_shlibdeps:
	# this is not happy on armhf, let's just skip it
