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

(cherry picked from commit 3be3b97a9709d3cd5303175ddbffa7dcca57ac3e)

Makefile.pre.in

index 19e8f55b2abcb962cb22bc5dfcc0a7914776cebe..9297e7fc89c4ad7359b99682c71e0ff7498e1b78 100644 (file)
@@ -1378,10 +1378,9 @@ autoconf:
 
 # Create a tags file for vi
 tags::
-       cd $(srcdir); \
-       ctags -w Include/*.h; \
-       for i in $(SRCDIRS); do ctags -f tags -w -a $$i/*.[ch]; \
-       done; \
+       ctags -w $(srcdir)/Include/*.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