summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-07-31 18:26:35 (GMT)
committerGuido van Rossum <guido@python.org>2000-07-31 18:26:35 (GMT)
commit251caa5c5b1b6ef791c8a8f6469bf38613bf5e2d (patch)
tree54ff80d6492d0d1e8ad8f071fc04feef5c5c1632
parente39dab6ce1035fa9e88d610003479ecfaf44692d (diff)
downloadcpython-251caa5c5b1b6ef791c8a8f6469bf38613bf5e2d.zip
cpython-251caa5c5b1b6ef791c8a8f6469bf38613bf5e2d.tar.gz
cpython-251caa5c5b1b6ef791c8a8f6469bf38613bf5e2d.tar.bz2
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.
-rw-r--r--Makefile.in9
1 files changed, 6 insertions, 3 deletions
diff --git a/Makefile.in b/Makefile.in
index 77492d3..6abcef5 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -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