From b6b89baa413fe9f37c5df5fbe1bba4f5f7f758b1 Mon Sep 17 00:00:00 2001 From: Guillem Jover Date: Tue, 13 Sep 2022 23:41:55 +0200 Subject: [PATCH] scripts/mk: On dpkg-build-api >= 1 include buildtools.mk in default.mk --- man/dpkg-build-api.pod | 4 ++++ scripts/mk/default.mk | 3 +++ 2 files changed, 7 insertions(+) diff --git a/man/dpkg-build-api.pod b/man/dpkg-build-api.pod index d8eb0c1d5..e5cd3d722 100644 --- a/man/dpkg-build-api.pod +++ b/man/dpkg-build-api.pod @@ -75,6 +75,10 @@ B macro. To restore the B behavior set B to B. +=item * + +B defaults to including B. + =back =item v0 diff --git a/scripts/mk/default.mk b/scripts/mk/default.mk index ad2ef5de3..0b2fd4aca 100644 --- a/scripts/mk/default.mk +++ b/scripts/mk/default.mk @@ -4,6 +4,9 @@ dpkg_datadir = $(srcdir)/mk include $(dpkg_datadir)/architecture.mk include $(dpkg_datadir)/buildapi.mk +ifeq ($(call dpkg_build_api_ge,1),yes) +include $(dpkg_datadir)/buildtools.mk +endif include $(dpkg_datadir)/buildflags.mk include $(dpkg_datadir)/buildopts.mk include $(dpkg_datadir)/pkg-info.mk -- 2.11.4.GIT