[PATCH v2 1/2] Makefile: deprecate in favor of Meson
Eli Schwartz <[email protected]>
| Newsgroups | org.kernel.vger.devicetree-compiler |
|---|---|
| Message-ID | <[email protected]> |
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 noisly 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 <[email protected]> --- Makefile | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Makefile b/Makefile index a00123d..000dd85 100644 --- a/Makefile +++ b/Makefile @@ -3,6 +3,12 @@ # Device Tree Compiler # +$(warning WARNING: Building dtc using the Makefile is deprecated, in favor of using the Meson build system instead.) +$(warning ) +$(warning https://mesonbuild.com) +$(warning ) +$(warning Use `meson setup builddir/ && ninja -C builddir/` to build, or `meson configure` to see build options.) + # # Version information will be constructed in this order: # DTC_VERSION release version as MAJOR.MINOR.PATCH -- 2.49.0