2024-11-20 15:25:28 +01:00
|
|
|
#!/usr/bin/make -f
|
|
|
|
# -*- makefile -*-
|
2024-11-20 15:11:08 +01:00
|
|
|
|
2024-11-20 15:25:28 +01:00
|
|
|
include /usr/share/dpkg/pkg-info.mk
|
2024-11-20 15:11:08 +01:00
|
|
|
|
2024-11-20 15:25:28 +01:00
|
|
|
%:
|
|
|
|
dh $@
|
2024-11-20 15:11:08 +01:00
|
|
|
|
2024-11-20 15:25:28 +01:00
|
|
|
debian/scripts/dh_dkms: debian/scripts/dh_dkms.in
|
|
|
|
sed -r "s,^#VERSION#,our \$$VERSION = \"$(DEB_VERSION)\";," $< > $@
|
|
|
|
chmod +x $@
|
2024-11-20 15:11:08 +01:00
|
|
|
|
2024-11-20 15:25:28 +01:00
|
|
|
debian/scripts/dh_dkms.1: debian/scripts/dh_dkms
|
|
|
|
pod2man \
|
|
|
|
--center "DKMS Debhelper" \
|
|
|
|
--release $(DEB_VERSION_UPSTREAM) \
|
|
|
|
$< > $@
|
2024-11-20 15:11:08 +01:00
|
|
|
|
2024-11-20 15:25:28 +01:00
|
|
|
override_dh_auto_build: debian/scripts/dh_dkms
|
|
|
|
override_dh_auto_build: debian/scripts/dh_dkms.1
|
2024-11-20 15:11:08 +01:00
|
|
|
|
2024-11-20 15:25:28 +01:00
|
|
|
override_dh_auto_install:
|
|
|
|
$(MAKE) install-debian DESTDIR=$(CURDIR)/debian/dkms
|
2024-11-20 15:11:08 +01:00
|
|
|
|
2024-11-20 15:25:28 +01:00
|
|
|
execute_after_dh_install:
|
|
|
|
DH_AUTOSCRIPTDIR=debian/scripts debian/scripts/dh_dkms
|