mirror of
https://github.com/python/cpython.git
synced 2025-08-03 08:34:29 +00:00
A different solution for Patch #100979: support for out-of-tree "make TAGS"
The version there built the tags and TAGS files in the build directory. I like them in the source directory. The simplest solution is to cd to the source directory before running ctags or etags. Tested both superficially and they work for me, on Linux Red Hat 6.1.
This commit is contained in:
parent
e39dab6ce1
commit
251caa5c5b
1 changed files with 6 additions and 3 deletions
|
@ -460,13 +460,16 @@ autoconf:
|
|||
|
||||
# Create a tags file for vi
|
||||
tags::
|
||||
ctags -w -t Include/*.h
|
||||
for i in $(SUBDIRS); do ctags -w -t -a $$i/*.[ch]; done
|
||||
cd $(srcdir); \
|
||||
ctags -w -t Include/*.h; \
|
||||
for i in $(SUBDIRS); do ctags -w -t -a $$i/*.[ch]; \
|
||||
done; \
|
||||
sort tags -o tags
|
||||
|
||||
# Create a tags file for GNU Emacs
|
||||
TAGS::
|
||||
etags Include/*.h
|
||||
cd $(srcdir); \
|
||||
etags Include/*.h; \
|
||||
for i in $(SUBDIRS); do etags -a $$i/*.[ch]; done
|
||||
|
||||
# Add dependencies to sub-Makefiles
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue