debian/rules
raw| 1 | #!/usr/bin/make -f |
| 2 | |
| 3 | export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 4 | ifneq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),) |
| 5 | export NETPLAN_FLAGS="-Dtesting=false" |
| 6 | endif |
| 7 | |
| 8 | %: |
| 9 | dh $@ --buildsystem=meson |
| 10 | |
| 11 | override_dh_auto_clean: |
| 12 | dh_auto_clean |
| 13 | make clean |
| 14 | |
| 15 | override_dh_auto_configure: |
| 16 | dh_auto_configure -- \ |
| 17 | -Dpython.purelibdir=/usr/lib/python3/dist-packages \ |
| 18 | -Dpython.platlibdir=/usr/lib/python3/dist-packages \ |
| 19 | -Dpython.bytecompile=-1 $(NETPLAN_FLAGS) |