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

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

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

DEBPKGNAME     := $(shell dpkg-parsechangelog | awk '/^Source:/ {print $$2}')

%:
	dh $@ --with python2

override_dh_auto_configure:
	dh_auto_configure -- -DCMAKE_INSTALL_LIBEXECDIR=lib/

override_dh_compress:
	dh_compress --exclude=.pdf

override_dh_install:
	mkdir -p debian/$(DEBPKGNAME)/usr/share/$(DEBPKGNAME)
	mv debian/$(DEBPKGNAME)/usr/bin/kissplice debian/$(DEBPKGNAME)/usr/share/$(DEBPKGNAME)/kissplice.py
