If you do not already know about it, you might want to give a try to mk-build-deps from the devscripts package.
Instead of directly installing the build dependencies it generates a local .deb package dependending on them, making them easy to install in a single command, and easy to uninstall (as they end up marked as automatically installed). cf. https://manpages.debian.org/unstable/devscripts/mk-build-deps.1.html
pgpFy2N0Bezdn.pgp
Description: Signature digitale OpenPGP