#!/usr/bin/make -f VERSION = $(shell dpkg-parsechangelog | grep ^Ver | cut -d ' ' -f 2 | cut -d '-' -f 1) %: dh $@ --buildsystem=lua --with=lua --with=single-binary override_dh_auto_clean: rm -f lib/std/normalize/version.lua dh_auto_clean override_dh_auto_build: sed -e 's/@version@/$(VERSION)/' lib/std/normalize/version.lua dh_auto_build .PHONY: override_dh_auto_clean override_dh_auto_build