#!/usr/bin/make -f

build3vers := $(shell py3versions -sv)

export PYBUILD_NAME = fusepy

%:
	dh $@ --with python3 --buildsystem=pybuild

override_dh_auto_clean:
	rm -rf fusepy.py .pybuild *egg-info

override_dh_auto_build:
	cp -pv fuse.py fusepy.py
	dh_auto_build

override_dh_gencontrol:
	dh_gencontrol -- \
	  -Vlib:Depends=$(shell dpkg-query -W -f '$${Depends}' libfuse-dev \
			| sed -E 's/.*(libfuse[[:alnum:].-]+).*/\1/')
