#!/usr/bin/make -f
# Written by Antti-Juhani Kaijanaho <ajk@debian.org>.  
# You may treat this file as if it were in the public domain.

%:
	dh $@

DEB_BUILD_GNU_TYPE := $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
DEB_HOST_GNU_TYPE  := $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
ifeq ($(DEB_BUILD_GNU_TYPE),$(DEB_HOST_GNU_TYPE))
	cross :=
else
	cross := CC=$(DEB_HOST_GNU_TYPE)-gcc
endif

override_dh_auto_build:
	dh_auto_build -- prefix=/usr sysconfdir=/etc $(cross)
override_dh_auto_install:
	dh_auto_install -- prefix=/usr sysconfdir=/etc
