From 7ebfcac8520e7e1d22a7d1e98ffeb16a141b9cb4 Mon Sep 17 00:00:00 2001 From: Eli Schwartz Date: Wed, 30 Apr 2025 11:25:25 -0400 Subject: [PATCH] Makefile: deprecate in favor of Meson Building the python bindings is complicated and not very practical to do in a Makefile. The setuptools invocations previously used are confusing and don't work very well compared to Meson. Having two build systems that do different things is also confusing though. Since Meson can do everything that Make can do, but the reverse is not true, we deprecate the latter and warn when you use it. GNU Make can emit a $(warning) on every Makefile run, which is a bit noisy but means we don't need to have every target depend on a PHONY target (preventing built targets from being seen as up to date). Signed-off-by: Eli Schwartz Message-ID: <20250430152601.43554-2-eschwartz@gentoo.org> Signed-off-by: David Gibson --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index a00123d..6ab5f97 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,10 @@ # Device Tree Compiler # +$(warning WARNING: Building dtc using make is deprecated, in favour of using Meson (https://mesonbuild.com)) +$(warning ) +$(warning Use `meson setup builddir/ && meson compile -C builddir/` to build, `meson test -C builddir/` to test, or `meson configure` to see build options.) + # # Version information will be constructed in this order: # DTC_VERSION release version as MAJOR.MINOR.PATCH