#!/usr/bin/make -f
# Copyright © 2016 Jonas Smedegaard <dr@jones.dk>
# Description: Main Debian packaging script for imip-agent
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3, or (at your option)
# any later version.
#
# This program is distributed in the hope that it will be useful, but
# WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
# General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

%:
	dh $@ --with python2

override_dh_auto_build:
	tools/i18n_format.sh

override_dh_auto_test:
	./test_all.sh

override_dh_installchangelogs:
	dh_installchangelogs docs/wiki/Changelog

override_dh_link:
	find debian/python-imiptools/usr -type f -name config.py \
	  -exec ln -sf /etc/imip-agent/config.py '{}' ';'
	dh_link
