From: Michel Lind <michel@michel-slm.name>
To: netdev@vger.kernel.org
Cc: Jakub Kicinski <kuba@kernel.org>
Subject: [PATCH net] tools/net/ynl: Makefile's install target now installs ynltool
Date: Thu, 15 Jan 2026 21:23:51 +0000 [thread overview]
Message-ID: <aWla562jr4q6cotH@mbp-m3-fedora.vm> (raw)
[-- Attachment #1: Type: text/plain, Size: 1517 bytes --]
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@michel-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
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 228 bytes --]
next reply other threads:[~2026-01-15 21:23 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-15 21:23 Michel Lind [this message]
2026-01-16 10:58 ` [PATCH net] tools/net/ynl: Makefile's install target now installs ynltool Michel Lind
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=aWla562jr4q6cotH@mbp-m3-fedora.vm \
--to=michel@michel-slm.name \
--cc=kuba@kernel.org \
--cc=netdev@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox