Add ctags to the tuna makefile
Signed-off-by: John Kacur <jkacur(a)redhat.com>
---
Makefile | 8 ++++++++
rpm/SPECS/tuna.spec | 2 +-
2 files changed, 9 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 9aabd08e868c..24f0870ffc0d 100644
--- a/Makefile
+++ b/Makefile
@@ -37,4 +37,12 @@ rpmclean:
pyclean:
@find . -type f \( -name \*~ -o -name \*.pyc \) -delete
+.PHONY: tags
+tags:
+ ctags -R --extra=+fq --python-kinds=+cfmvi
+
+.PHONY: cleantags
+cleantags:
+ rm -f tags
+
clean: pyclean rpmclean
diff --git a/rpm/SPECS/tuna.spec b/rpm/SPECS/tuna.spec
index 46d14fe05cb4..72365a29f2e4 100644
--- a/rpm/SPECS/tuna.spec
+++ b/rpm/SPECS/tuna.spec
@@ -1,5 +1,5 @@
%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from
distutils.sysconfig import get_python_lib; print get_python_lib()")}
-%{!?python_ver: %define python_ver %(%{__python} -c "import sys ; print
sys.version[:3]")}
+%{!?python_ver: %define python_ver %(%{__python} -c "import sys ;
print(sys.version[:3])")}
Name: tuna
Version: 0.14.1
--
2.26.2