]> granicus.if.org Git - python/commitdiff
make tags: index also Modules/_ctypes/ (#4648)
authorVictor Stinner <victor.stinner@gmail.com>
Thu, 30 Nov 2017 21:49:10 +0000 (22:49 +0100)
committerGitHub <noreply@github.com>
Thu, 30 Nov 2017 21:49:10 +0000 (22:49 +0100)
Avoid also "cd $(srcdir)" to not change the current directory.

Makefile.pre.in

index d196d5f838e888e7eedf0edf76c817af616347e3..f425a89173ae147a699b84b570d67b72701c3aa1 100644 (file)
@@ -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