[Python-checkins] make tags: index also Modules/_ctypes/ (#4648)

Victor Stinner webhook-mailer at python.org
Thu Nov 30 16:49:13 EST 2017


https://github.com/python/cpython/commit/3be3b97a9709d3cd5303175ddbffa7dcca57ac3e
commit: 3be3b97a9709d3cd5303175ddbffa7dcca57ac3e
branch: master
author: Victor Stinner <victor.stinner at gmail.com>
committer: GitHub <noreply at github.com>
date: 2017-11-30T22:49:10+01:00
summary:

make tags: index also Modules/_ctypes/ (#4648)

Avoid also "cd $(srcdir)" to not change the current directory.

files:
M Makefile.pre.in

diff --git a/Makefile.pre.in b/Makefile.pre.in
index d196d5f838e..f425a89173a 100644
--- a/Makefile.pre.in
+++ b/Makefile.pre.in
@@ -1605,10 +1605,9 @@ autoconf:
 
 # Create a tags file for vi
 tags::
-	cd $(srcdir); \
-	ctags -w Include/*.h Include/internal/*.h; \
-	for i in $(SRCDIRS); do ctags -f tags -w -a $$i/*.[ch]; \
-	done; \
+	ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/internal/*.h
+	for i in $(SRCDIRS); do ctags -f tags -w -a $(srcdir)/$$i/*.[ch]; done
+	ctags -f tags -w -a $(srcdir)/Modules/_ctypes/*.[ch]
 	LC_ALL=C sort -o tags tags
 
 # Create a tags file for GNU Emacs



More information about the Python-checkins mailing list