diff options
author | Anthony Shaw <anthony.p.shaw@gmail.com> | 2019-12-28 02:32:48 (GMT) |
---|---|---|
committer | Pablo Galindo <Pablogsal@gmail.com> | 2019-12-28 02:32:48 (GMT) |
commit | ef7eaafc9d2e370cf79b3674e56f643bbfe239e2 (patch) | |
tree | 9f0fd5163cd53780b9e6d571eebf4a396acf544e /Makefile.pre.in | |
parent | 90913985b62845a58f6b9e815121bcf614bd107f (diff) | |
download | cpython-ef7eaafc9d2e370cf79b3674e56f643bbfe239e2.zip cpython-ef7eaafc9d2e370cf79b3674e56f643bbfe239e2.tar.gz cpython-ef7eaafc9d2e370cf79b3674e56f643bbfe239e2.tar.bz2 |
bpo-39144 Align ctags and etags behaviours in the makefile and include Python stdlib files (GH-17721)
Diffstat (limited to 'Makefile.pre.in')
-rw-r--r-- | Makefile.pre.in | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Makefile.pre.in b/Makefile.pre.in index d08c78d..cfe42b4 100644 --- a/Makefile.pre.in +++ b/Makefile.pre.in @@ -1730,6 +1730,7 @@ 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 @@ -1737,6 +1738,8 @@ 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 |