summaryrefslogtreecommitdiffstats
path: root/scripts/mk/buildopts.mk
blob: c957777193c6e098712a8a9970577fcd9cfe42c4 (plain)
1
2
3
4
5
6
7
8
9
10
# This Makefile fragment (since dpkg 1.20.1) parses option arguments from
# DEB_BUILD_OPTIONS, and exposes these as variables.
#
# Defines the following variables:
#
#   DEB_BUILD_OPTION_PARALLEL: the argument for the parallel=N option.

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
  DEB_BUILD_OPTION_PARALLEL = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
endif