diff options
Diffstat (limited to 'debian/Makefile')
-rw-r--r-- | debian/Makefile | 28 |
1 files changed, 28 insertions, 0 deletions
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))' |