#! /usr/bin/make -f # # debian/rules # Part of Debian ‘xkcdpass’ package. # # This is free software, and you are welcome to redistribute it under # certain conditions; see the end of this file for copyright # information, grant of license, and disclaimer of warranty. PACKAGE_NAME := xkcdpass DOC_PACKAGE_NAME := ${PACKAGE_NAME}-doc MAIN_PYTHON_PACKAGE = xkcdpass export PYBUILD_NAME = ${MAIN_PYTHON_PACKAGE} # The library package should not install binaries to the default location. private_bin_dir = {destdir}/usr/share/${PACKAGE_NAME}/bin export PYBUILD_AFTER_INSTALL = \ $(INSTALL) --directory "${private_bin_dir}" ; \ $(MV) "{destdir}"/usr/bin/* "${private_bin_dir}"/. EXAMPLES_DIR := $(CURDIR)/examples # Send HTTP traffic to the “discard” service during packaging actions. export http_proxy = http://127.0.1.1:9/ export https_proxy = ${http_proxy} CHMOD ?= chmod MV ?= mv -f INSTALL ?= install %: dh $@ --without single-binary --with bash-completion,python3 --buildsystem=pybuild override_dh_installdocs: dh_installdocs \ -p "${DOC_PACKAGE_NAME}" \ --doc-main-package="${PACKAGE_NAME}" dh_installdocs .PHONY: override_dh_installexamples override_dh_installexamples: $(CHMOD) -x ${EXAMPLES_DIR}/*.py dh_installexamples # Copyright © 2010–2026 Ben Finney # # This is free software: you may copy, modify, and/or distribute this work # under the terms of the GNU General Public License as published by the # Free Software Foundation; version 3 of that license or any later version. # No warranty expressed or implied. # Local variables: # coding: utf-8 # mode: makefile # End: # vim: fileencoding=utf-8 filetype=make :