summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJohn Kacur <jkacur@redhat.com>2021-01-18 22:45:46 -0500
committerJohn Kacur <jkacur@redhat.com>2021-01-18 22:45:46 -0500
commitbe7ea5c55bbf265db53dcf5f51035372a00bd66f (patch)
tree9b0e29916d62f2a7e31778b362e50639f76c50fd
parentcc2af6e1c990bdc690d4bc6c30d588fd3bb5a5a5 (diff)
downloadtuna-be7ea5c55bbf265db53dcf5f51035372a00bd66f.tar.gz
tuna: Add ctags to the tuna makefile
Add ctags to the tuna makefile Signed-off-by: John Kacur <jkacur@redhat.com>
-rw-r--r--Makefile8
-rw-r--r--rpm/SPECS/tuna.spec2
2 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 9aabd08..24f0870 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 46d14fe..72365a2 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