#!/usr/bin/make -f

DEB_BUILD_ARCH ?= $(shell dpkg-architecture -qDEB_BUILD_ARCH)

export HOME = $(CURDIR)/build

%:
	dh $@ --with python3

override_dh_install:
	PYTHONPATH=. python3 app/settings.py
	dh_install -Xpycache

execute_after_dh_fixperms:
	chmod 755 debian/legion/usr/share/legion/scripts/*
