]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
rtla: Add the ability to create ctags and etags
authorJohn Kacur <jkacur@redhat.com>
Fri, 21 Mar 2025 17:50:53 +0000 (13:50 -0400)
committerSteven Rostedt (Google) <rostedt@goodmis.org>
Wed, 26 Mar 2025 14:39:40 +0000 (10:39 -0400)
- Add the ability to create and remove ctags and etags, using the following
make tags
make TAGS
make tags_clean

- fix a comment in Makefile.rtla with the correct spelling and don't
  imply that the ability to create an rtla tarball will be removed

Cc: Tomas Glozar <tglozar@redhat.com>
Cc: "Luis Claudio R . Goncalves" <lgoncalv@redhat.com>
Link: https://lore.kernel.org/20250321175053.29048-1-jkacur@redhat.com
Signed-off-by: John Kacur <jkacur@redhat.com>
Signed-off-by: Steven Rostedt (Google) <rostedt@goodmis.org>
tools/tracing/rtla/Makefile.rtla

index cc1d6b615475f0817a5d0cc9aa0537c99467c2b3..08c1b40883d3aa3b718f21bbd1f9e0f56a375cc6 100644 (file)
@@ -34,6 +34,8 @@ INSTALL               := install
 MKDIR          := mkdir
 STRIP          := strip
 BINDIR         := /usr/bin
+CTAGS          := ctags
+ETAGS          := ctags -e
 
 .PHONY: install
 install: doc_install
@@ -47,6 +49,18 @@ install: doc_install
        @test ! -f $(DESTDIR)$(BINDIR)/timerlat || $(RM) $(DESTDIR)$(BINDIR)/timerlat
        @$(LN) -s rtla $(DESTDIR)$(BINDIR)/timerlat
 
+.PHONY: tags
+tags:
+       $(CTAGS) -R --extras=+f --c-kinds=+p src
+
+.PHONY: TAGS
+TAGS:
+       $(ETAGS) -R --extras=+f --c-kinds=+p src
+
+.PHONY: tags_clean
+tags_clean:
+       $(RM) tags TAGS
+
 .PHONY: doc doc_clean doc_install
 doc:
        $(MAKE) -C $(DOCSRC)
@@ -57,8 +71,7 @@ doc_clean:
 doc_install:
        $(MAKE) -C $(DOCSRC) install
 
-# This section is neesary for the tarball, when the tarball
-# support is removed, we can delete these entries.
+# This section is necessary to make the rtla tarball
 NAME           := rtla
 DIRS           := src
 FILES          := Makefile README.txt