dpkg-buildapi(1) dpkg suite dpkg-buildapi(1)

dpkg-buildapi - returns the build API level to use during package build

dpkg-buildapi [option...] [command]

dpkg-buildapi is a tool to retrieve the dpkg-build-api(7) level to use during build of source Debian packages.

This program was introduced in dpkg 1.22.0.

Show the usage message and exit.
Show the version and exit.

Specifies the main source control file to read information from. The default is debian/control.

The build API level to use. This is intended to be used internally by the tools executed from debian/rules to avoid having to parse debian/control multiple times, and not to set the global build API level from debian/rules, otherwise build drivers (such as dpkg-buildpackage(1)) cannot access it.

/usr/share/dpkg/buildapi.mk
Makefile snippet that will parse the build API level.
2024-02-27 1.22.5