#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
ddp_file := $(shell cd ddp; echo ice-*.pkg)

%:
	dh $@ --with dkms

debian/%: debian/%.in
	sed "s:#DDP_FILE#:$(ddp_file):g" $< > $@

override_dh_prep: debian/ice-dkms.postinst debian/ice-dkms.postrm
	dh_prep

override_dh_install:
	dh_install src/* scripts usr/src/ice-$(DEB_VERSION_UPSTREAM)/

override_dh_dkms:
	dh_dkms -V $(DEB_VERSION_UPSTREAM)

override_dh_auto_configure:
override_dh_auto_build:
override_dh_auto_test:
override_dh_auto_install:
override_dh_auto_clean:
