summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2021-11-23 13:03:44 -0500
committerJohn Kacur <jkacur@redhat.com>2021-11-24 12:46:51 -0500
commit1b81ccb79e2e6cfde8bbe5bb7d32d021eedda29d (patch)
treefebdc717c9db3f750fe0d21778fb7e7a3477574c
parent79cd0d3cf76c6b48ab253affaa2748c909a84540 (diff)
downloadpython-linux-procfs-1b81ccb79e2e6cfde8bbe5bb7d32d021eedda29d.tar.gz
python-linux-procfs: Makefile: Add ctags
Add the ability to use ctags to the Makefile. This adds the commands make tags make cleantags and modifies make clean to call cleantags Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index ebca02d..b29f968 100644
--- a/Makefile
+++ b/Makefile
@@ -31,4 +31,12 @@ rpmclean:
pyclean:
@find . -type f \( -name \*~ -o -name \*.pyc \) -delete
-clean: pyclean rpmclean
+.PHONY: tags
+tags:
+ ctags -R --extra=+fq --python-kinds=+cfmvi
+
+.PHONY: cleantags
+cleantags:
+ rm -f tags
+
+clean: pyclean rpmclean cleantags