forked from QubesOS/qubes-builder-debian
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.builder
20 lines (19 loc) · 907 Bytes
/
Makefile.builder
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
ifneq (,$(findstring $(DIST),stretch buster bullseye bookworm))
DEBIAN_PLUGIN_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
DISTRIBUTION := debian
BUILDER_MAKEFILE = $(DEBIAN_PLUGIN_DIR)Makefile.debian
TEMPLATE_SCRIPTS = $(DEBIAN_PLUGIN_DIR)template_debian
DIST_TAG := $(strip $(subst stretch, deb9, $(DIST)))
DIST_TAG := $(strip $(subst buster, deb10, $(DIST_TAG)))
DIST_TAG := $(strip $(subst bullseye, deb11, $(DIST_TAG)))
DIST_TAG := $(strip $(subst bookworm, deb12, $(DIST_TAG)))
endif
ifneq (,$(findstring $(DIST),trusty xenial bionic focal))
DEBIAN_PLUGIN_DIR := $(dir $(abspath $(lastword $(MAKEFILE_LIST))))
TEMPLATE_ENV_WHITELIST += SYSTEMD_NSPAWN_ENABLE
DISTRIBUTION := qubuntu
BUILDER_MAKEFILE = $(DEBIAN_PLUGIN_DIR)Makefile.qubuntu
TEMPLATE_SCRIPTS = $(DEBIAN_PLUGIN_DIR)template_qubuntu
DIST_TAG := $(DIST)
endif
# vim: ft=make