0a91429f89
Signed-off-by: Thomas Karl Pietrowski <thopiekar@gmail.com>
40 lines
1.1 KiB
Makefile
Executable File
40 lines
1.1 KiB
Makefile
Executable File
#!/usr/bin/make -f
|
|
# See debhelper(7) (uncomment to enable)
|
|
# output every command that modifies files on the build system.
|
|
export DH_VERBOSE = 1
|
|
# Suppress __pycache__ pollution
|
|
export PYTHONDONTWRITEBYTECODE = 1
|
|
|
|
%:
|
|
dh $@ --with python3 --buildsystem=cmake --parallel
|
|
|
|
override_dh_auto_clean:
|
|
rm -rf build-*
|
|
- rm -rf debian/tmp
|
|
|
|
override_dh_auto_configure:
|
|
for PYX in $(shell py3versions -rv) ; do \
|
|
mkdir -p build-$${PYX}; \
|
|
dh_auto_configure --builddirectory=build-$${PYX} -- \
|
|
-DCMAKE_BUILD_TYPE:STRING="Release" \
|
|
-DPYTHON_EXECUTABLE:FILEPATH=/usr/bin/python$${PYX} ; \
|
|
done
|
|
|
|
override_dh_auto_build:
|
|
for PYX in $(shell py3versions -rv) ; do \
|
|
dh_auto_build --builddirectory=build-$${PYX}; \
|
|
done
|
|
|
|
override_dh_auto_install:
|
|
for PYX in $(shell py3versions -rv) ; do \
|
|
dh_auto_install --builddirectory=build-$${PYX} --destdir=debian/tmp ; \
|
|
done
|
|
|
|
override_dh_auto_test:
|
|
for PYX in $(shell py3versions -rv) ; do \
|
|
dh_auto_test --builddirectory=build-$${PYX} || true ; \
|
|
done
|
|
|
|
override_dh_install:
|
|
dh_install --fail-missing
|