#!/usr/bin/make -f %: dh $@ --with python3 --buildsystem=pybuild override_dh_auto_build: @if [ $$(dpkg-parsechangelog -S version) != $$(grep __version__ isenkram/__init__.py |cut -d\' -f2) ] ; then echo; echo "error: version numbers in d/changelog and isenkram/__init__.py do not match"; echo; exit 1; fi dh_auto_build # Hardlink identical map files to make the deb smaller override_dh_install: dh_install rdfind -outputname /dev/null -makehardlinks true debian/isenkram-cli/usr/share/isenkram # Generate and install manual pages %.8: %.rst rst2man $^ > $@ %.1: %.rst rst2man $^ > $@ override_dh_installman: isenkram-lookup.1 isenkramd.1 isenkram-autoinstall-firmware.8 isenkram-pkginstall.8 dh_installman $(RM) isenkram-lookup.1 $(RM) isenkramd.1 $(RM) isenkram-autoinstall-firmware.8 $(RM) isenkram-pkginstall.8 .SUFFIXES: .rst .1 .8 update: ./update-fw-list compare-lintian-modaliases: curl 'https://udd.debian.org/lintian-tag.cgi?tag=appstream-metadata-missing-modalias-provide'|grep tracker|cut -d\" -f5-|cut -d'<' -f1 |cut -d'>' -f2-|sort -u > pkgs-lintian awk '/Package: / {print $$2}' < modaliases | sort > pkgs-modaliases comm -23 pkgs-lintian pkgs-modaliases