#!/usr/bin/make -f
# -*- makefile -*-

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

%:
	dh $@ --with python2

override_dh_install:
	chmod +x apicaro/setup.py
	$$python apicaro/setup.py install --root=$(CURDIR)/debian/$(DEB_SOURCE) --install-layout=deb;
	rename "s/(\d+)-/\$$1-icaro-/" udev/*
	chmod -x `find hardware/icaro/v4/micro/firmware -iname "*.c" -or -iname "*.h" -or -iname "*.lkr"`
	dh_install

