From 8d2ac98d53c2cc5fef05974bc9e58b5b72331259 Mon Sep 17 00:00:00 2001 From: Egor Tensin Date: Sat, 6 Mar 2021 19:51:23 +0000 Subject: add Debian packaging files --- debian/Makefile | 28 ++++++++++++++++++++++++++++ 1 file changed, 28 insertions(+) create mode 100644 debian/Makefile (limited to 'debian/Makefile') diff --git a/debian/Makefile b/debian/Makefile new file mode 100644 index 0000000..74a8a18 --- /dev/null +++ b/debian/Makefile @@ -0,0 +1,28 @@ +MAKEFLAGS += --warn-undefined-variables +.DEFAULT_GOAL := all +.DELETE_ON_ERROR: +.SUFFIXES: +SHELL := bash +.SHELLFLAGS := -e -o pipefail -c + +escape = $(subst ','\'',$(1)) + +makefile_dir := $(dir $(realpath $(firstword $(MAKEFILE_LIST)))) +repo_dir := $(makefile_dir)/.. +build_area_dir := $(makefile_dir)/build-area + +.PHONY: build/src +build/src: + pushd '$(call escape,$(repo_dir))' && gbp buildpackage -S + +.PHONY: build/bin +build/bin: + pushd '$(call escape,$(repo_dir))' && gbp buildpackage + +.PHONY: build/pbuilder +build/pbuilder: + pushd '$(call escape,$(repo_dir))' && gbp buildpackage --git-pbuilder --git-dist=focal --git-arch=amd64 + +.PHONY: clean +clean: + rm -rf -- '$(call escape,$(build_area_dir))' -- cgit v1.2.3