#!/usr/bin/make -f # Copyright © 2010 Hans-Christoph Steiner # Copyright © 2018 IOhannes m zmölnig #enable hardening export DEB_BUILD_MAINT_OPTIONS=hardening=+all pkglibdir = /usr/lib/pd/extra DATE_FMT = compiled for Debian on %Y/%m/%d at %H:%M:%S UTC ifdef SOURCE_DATE_EPOCH BUILD_DATE ?= $(shell date -u -d "@$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)" 2>/dev/null || date -u -r "$(SOURCE_DATE_EPOCH)" "+$(DATE_FMT)" 2>/dev/null || date -u "+$(DATE_FMT)") else BUILD_DATE ?= $(shell date "+$(DATE_FMT)") endif DEB_CPPFLAGS_MAINT_APPEND = -DBUILD_DATE="$(BUILD_DATE)" %: dh $@ --buildsystem=pd_lib_builder override_dh_auto_build: dh_auto_build -- pdlua_version="$(DEB_VERSION)" DEB_COPYRIGHT_CHECK_IGNORE_REGEX = \ debian/.*|tutorial/.*\.(png|gif)|pdlua/examples/osci3d/osci3d~\.png # licensecheck v1 .PHONY: licensecheck licensecheck: LANG=C.UTF-8 licensecheck \ -i "^($(DEB_COPYRIGHT_CHECK_IGNORE_REGEX))$$" \ --check '.*' --recursive --deb-machine --lines 0 * \ > debian/copyright_newhints cmp debian/copyright_hints debian/copyright_newhints \ && rm debian/copyright_newhints