1 # This Makefile fragment (since dpkg 1.22.0) handles the build API.
3 # Default API level when not set.
4 DPKG_BUILD_API ?
= $(shell dpkg-buildapi
)
6 # We could use only built-in GNU make functions, but that seems too much
7 # complexity given no integer operators, given that we currently have to
8 # fetch the build API level anyway.
9 dpkg_build_api_ge
= $(shell test "$(DPKG_BUILD_API)" -ge
"$(1)" && echo yes
)