Skip to content

Commit

Permalink
bpo-39144 Align ctags and etags behaviours in the makefile and includ…
Browse files Browse the repository at this point in the history
…e Python stdlib files (GH-17721)

(cherry picked from commit ef7eaaf)

Co-authored-by: Anthony Shaw <anthony.p.shaw@gmail.com>
  • Loading branch information
miss-islington and tonybaloney committed Dec 28, 2019
1 parent 5dd1909 commit 2786fde
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile.pre.in
Expand Up @@ -1725,13 +1725,16 @@ tags::
ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/cpython/*.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]
find $(srcdir)/Lib -type f -name "*.py" -not -name "test_*.py" -not -path "*/test/*" -not -path "*/tests/*" -not -path "*/*_test/*" | ctags -f tags -w -a -L -
LC_ALL=C sort -o tags tags

# Create a tags file for GNU Emacs
TAGS::
cd $(srcdir); \
etags Include/*.h Include/cpython/*.h Include/internal/*.h; \
for i in $(SRCDIRS); do etags -a $$i/*.[ch]; done
etags -a $(srcdir)/Modules/_ctypes/*.[ch]
find $(srcdir)/Lib -type f -name "*.py" -not -name "test_*.py" -not -path "*/test/*" -not -path "*/tests/*" -not -path "*/*_test/*" | etags - -a

# Sanitation targets -- clean leaves libraries, executables and tags
# files, which clobber removes as well
Expand Down
@@ -0,0 +1 @@
The ctags and etags build targets both include Modules/_ctypes and Python standard library source files.

0 comments on commit 2786fde

Please sign in to comment.