[<prev] [next>] [day] [month] [year] [list]
Message-ID: <aWla562jr4q6cotH@mbp-m3-fedora.vm>
Date: Thu, 15 Jan 2026 21:23:51 +0000
From: Michel Lind <michel@...hel-slm.name>
To: netdev@...r.kernel.org
Cc: Jakub Kicinski <kuba@...nel.org>
Subject: [PATCH net] tools/net/ynl: Makefile's install target now installs
ynltool
This tool is built by default, but was not being installed by default
when running `make install`. Fix this; it installs to $(prefix)/bin by
default unless bindir is overridden.
Signed-off-by: Michel Lind <michel@...hel-slm.name>
---
tools/net/ynl/Makefile | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/tools/net/ynl/Makefile b/tools/net/ynl/Makefile
index c2f3e8b3f2ac..bf3f8b16170d 100644
--- a/tools/net/ynl/Makefile
+++ b/tools/net/ynl/Makefile
@@ -4,6 +4,7 @@ include ../../scripts/Makefile.arch
INSTALL ?= install
prefix ?= /usr
+bindir ?= $(prefix)/bin
ifeq ($(LP64), 1)
libdir_relative = lib64
else
@@ -41,13 +42,16 @@ clean distclean:
rm -rf pyynl.egg-info
rm -rf build
-install: libynl.a lib/*.h
+install: libynl.a lib/*.h ynltool
@echo -e "\tINSTALL libynl.a"
@$(INSTALL) -d $(DESTDIR)$(libdir)
@$(INSTALL) -m 0644 libynl.a $(DESTDIR)$(libdir)/libynl.a
@echo -e "\tINSTALL libynl headers"
@$(INSTALL) -d $(DESTDIR)$(includedir)/ynl
@$(INSTALL) -m 0644 lib/*.h $(DESTDIR)$(includedir)/ynl/
+ @echo -e "\tINSTALL ynltool"
+ @$(INSTALL) -d $(DESTDIR)$(bindir)
+ @$(INSTALL) -m 0755 ynltool/ynltool $(DESTDIR)$(bindir)/
@echo -e "\tINSTALL pyynl"
@pip install --prefix=$(DESTDIR)$(prefix) .
@make -C generated install
--
2.52.0
--
_o) Michel Lind
_( ) identities: https://keyoxide.org/5dce2e7e9c3b1cffd335c1d78b229d2f7ccc04f2
README: https://fedoraproject.org/wiki/User:Salimma#README
Download attachment "signature.asc" of type "application/pgp-signature" (229 bytes)
Powered by blists - more mailing lists