#! /usr/bin/make -f

include /usr/share/dpkg/default.mk

EFIDIR ?= $(shell dpkg-vendor --query vendor | awk '{ print tolower($$0) }')

%:
	dh $@

destdir := debian/fwupd-signed
docdir  := $(destdir)/usr/share/doc/fwupd-signed

override_dh_installchangelogs:
	dh_installchangelogs
	# Quieten lintian, which otherwise gets confused by our odd version
	# number.
	# ln $(docdir)/changelog $(docdir)/changelog.Debian

override_dh_gencontrol:
	dh_gencontrol -- -v$(DEB_VERSION)+$(shell cat version) \
		-Vfwupd:Version=$(shell cat version)

override_dh_auto_install:
	dh_auto_install --destdir=$(destdir)

