#!/usr/bin/make -f
export DEB_BUILD_MAINT_OPTIONS= hardening=+all
DEB_HOST_MULTIARCH=$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@ --buildsystem=lua --with lua

override_dh_auto_configure:
	ln -s . trepl
	sed -i -e "s/#DEB_HOST_MULTIARCH#/$(DEB_HOST_MULTIARCH)/g" debian/lua-torch-trepl.links
	dh_auto_configure

override_dh_auto_clean:
	-$(RM) -rf 5.1-torch-trepl 5.2-torch-trepl debian/trash trepl
	dh_auto_clean
