Skip to content

Commit ef7eaaf

Browse files
tonybaloneypablogsal
authored andcommitted
bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)
1 parent 9091398 commit ef7eaaf

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

Makefile.pre.in

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1730,13 +1730,16 @@ tags::
17301730
ctags -w $(srcdir)/Include/*.h $(srcdir)/Include/cpython/*.h $(srcdir)/Include/internal/*.h
17311731
for i in $(SRCDIRS); do ctags -f tags -w -a $(srcdir)/$$i/*.[ch]; done
17321732
ctags -f tags -w -a $(srcdir)/Modules/_ctypes/*.[ch]
1733+
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 -
17331734
LC_ALL=C sort -o tags tags
17341735

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

17411744
# Sanitation targets -- clean leaves libraries, executables and tags
17421745
# files, which clobber removes as well
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
The ctags and etags build targets both include Modules/_ctypes and Python standard library source files.

0 commit comments

Comments
 (0)