[Python-checkins] CVS: python/dist/src Makefile.in,1.91,1.92

Guido van Rossum python-dev@python.org
Mon, 31 Jul 2000 11:26:37 -0700


Update of /cvsroot/python/python/dist/src
In directory slayer.i.sourceforge.net:/tmp/cvs-serv18682

Modified Files:
	Makefile.in 
Log Message:
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.


Index: Makefile.in
===================================================================
RCS file: /cvsroot/python/python/dist/src/Makefile.in,v
retrieving revision 1.91
retrieving revision 1.92
diff -C2 -r1.91 -r1.92
*** Makefile.in	2000/07/04 04:15:53	1.91
--- Makefile.in	2000/07/31 18:26:35	1.92
***************
*** 461,471 ****
  # Create a tags file for vi
  tags::
! 		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
  		for i in $(SUBDIRS); do etags -a $$i/*.[ch]; done
  
--- 461,474 ----
  # Create a tags file for vi
  tags::
! 		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::
! 		cd $(srcdir); \
! 		etags Include/*.h; \
  		for i in $(SUBDIRS); do etags -a $$i/*.[ch]; done