blob: 74a8a18d8a0b81edd2d910b10e0ea8d9859bc768 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
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))'
|