13b9ea7f1c
Debian use /usr/lib/python*/dist-packages (instead of site-packages) for packaged python modules. It's achieved using --install-layout=deb option, so pass it on Debian build.
18 lines
415 B
Makefile
Executable File
18 lines
415 B
Makefile
Executable File
#!/usr/bin/make -f
|
|
# -*- makefile -*-
|
|
|
|
export DESTDIR=$(shell pwd)/debian/tmp
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
#export DH_VERBOSE=1
|
|
|
|
%:
|
|
dh $@ --with=systemd,dkms
|
|
|
|
override_dh_auto_build:
|
|
make all LIBDIR=/usr/lib DEBIANBUILD=1
|
|
|
|
override_dh_auto_install:
|
|
make install LIBDIR=/usr/lib DEBIANBUILD=1 PYTHON_PREFIX_ARG=--install-layout=deb
|
|
make install-debian-kernel-support LIBDIR=/usr/lib DEBIANBUILD=1
|