Skip to contentSkip to conversation

make: Add tags target and gitignore the tags file

PATCH Applied Siddharth Chandrasekaran 2 participants 2 messages Jun 10, 2021

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 make: Add tags target and gitignore the tags file

Add make target to generate ctags tags file and add it to .gitignore.

---
 Makefile   | 4 ++++
 .gitignore | 1 +
 2 files changed, 5 insertions(+)
Makefile +4 -0
index e0828fe..017e7d8 100644
@@ -128,3 +128,7 @@ cscope:
 	find -L $(cscope_dirs) -maxdepth 1 \
 		-name '*.[chsS]' -exec realpath --relative-base=$(PWD) {} \; | sort -u > ./cscope.files
 	cscope -bk
+
+.PHONY: tags
+tags:
+	ctags -R
.gitignore +1 -0
index 784cb2d..8534fb7 100644
@@ -1,3 +1,4 @@
+tags
 .gdbinit
 *.a
 *.d
Signature · 12 lines
2.17.1




Amazon Development Center Germany GmbH
Krausenstr. 38
10117 Berlin
Geschaeftsfuehrung: Christian Schlaeger, Jonathan Weiss
Eingetragen am Amtsgericht Charlottenburg unter HRB 149173 B
Sitz: Berlin
Ust-ID: DE 289 237 879
maintainer Applied
#1 lore raw
Quoted 26 lines · Siddharth Chandrasekaran

Add make target to generate ctags tags file and add it to .gitignore.

---
  Makefile   | 4 ++++
  .gitignore | 1 +
  2 files changed, 5 insertions(+)
Makefile +4 -0
index e0828fe..017e7d8 100644
@@ -128,3 +128,7 @@ cscope:
  	find -L $(cscope_dirs) -maxdepth 1 \
  		-name '*.[chsS]' -exec realpath --relative-base=$(PWD) {} \; | sort -u > ./cscope.files
  	cscope -bk
+
+.PHONY: tags
+tags:
+	ctags -R
.gitignore +0 -0
index 784cb2d..8534fb7 100644

.gitignore line 4

Quoted 4 lines
.gitignore +1 -0
@@ -1,3 +1,4 @@
+tags
  .gdbinit
  *.a
  *.d

Queued, thanks.

Paolo