Dpkg::Vendor: Make the add_build_flags() a non-private method
[dpkg.git] / scripts / mk / buildapi.mk
blob668e325c8827d759a64f02319d34858f3657bd3b
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)