Skip to content

Commit 7320326

Browse files
John Kacurrostedt
authored andcommitted
rtla: Add the ability to create ctags and etags
- 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>
1 parent a86150f commit 7320326

File tree

1 file changed

+15
-2
lines changed

1 file changed

+15
-2
lines changed

tools/tracing/rtla/Makefile.rtla

Lines changed: 15 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,8 @@ INSTALL := install
3434
MKDIR := mkdir
3535
STRIP := strip
3636
BINDIR := /usr/bin
37+
CTAGS := ctags
38+
ETAGS := ctags -e
3739

3840
.PHONY: install
3941
install: doc_install
@@ -47,6 +49,18 @@ install: doc_install
4749
@test ! -f $(DESTDIR)$(BINDIR)/timerlat || $(RM) $(DESTDIR)$(BINDIR)/timerlat
4850
@$(LN) -s rtla $(DESTDIR)$(BINDIR)/timerlat
4951

52+
.PHONY: tags
53+
tags:
54+
$(CTAGS) -R --extras=+f --c-kinds=+p src
55+
56+
.PHONY: TAGS
57+
TAGS:
58+
$(ETAGS) -R --extras=+f --c-kinds=+p src
59+
60+
.PHONY: tags_clean
61+
tags_clean:
62+
$(RM) tags TAGS
63+
5064
.PHONY: doc doc_clean doc_install
5165
doc:
5266
$(MAKE) -C $(DOCSRC)
@@ -57,8 +71,7 @@ doc_clean:
5771
doc_install:
5872
$(MAKE) -C $(DOCSRC) install
5973

60-
# This section is neesary for the tarball, when the tarball
61-
# support is removed, we can delete these entries.
74+
# This section is necessary to make the rtla tarball
6275
NAME := rtla
6376
DIRS := src
6477
FILES := Makefile README.txt

0 commit comments

Comments
 (0)