#!/usr/bin/make -f include /usr/share/dpkg/pkg-info.mk export DEB_VERSION_UPSTREAM %: dh $@ --buildsystem=none override_dh_dkms: dh_dkms -V $(DEB_VERSION_UPSTREAM) ifneq (,$(wildcard .git)) upstream: git remote show $@ >/dev/null 2>&1 || git remote add $@ $(shell sed -rn 's/Repository: //p' debian/upstream/metadata) git fetch $@ --prune endif