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 <eschwartz@gentoo.org>
Message-ID: <20250430152601.43554-2-eschwartz@gentoo.org>
Signed-off-by: David Gibson <david@gibson.dropbear.id.au>
This commit is contained in:
Eli Schwartz 2025-04-30 11:25:25 -04:00 committed by David Gibson
parent f4c53f4ebf
commit 7ebfcac852

View file

@ -3,6 +3,10 @@
# Device Tree Compiler # 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: # Version information will be constructed in this order:
# DTC_VERSION release version as MAJOR.MINOR.PATCH # DTC_VERSION release version as MAJOR.MINOR.PATCH