[Zope3-checkins] CVS: Zope3 - Makefile:1.18

Guido van Rossum guido@python.org
Sat, 29 Mar 2003 06:28:05 -0500


>  - Add a 'tags' target which doesn't assume I run on Guido's machine. :)
> 
> === Zope3/Makefile 1.17 => 1.18 ===
> --- Zope3/Makefile:1.17	Tue Mar 25 23:20:37 2003
> +++ Zope3/Makefile	Sat Mar 29 04:43:04 2003
> @@ -31,6 +31,15 @@
>  	rm -f TAGS
>  	$(PYTHON) setup.py clean -a
>  
> +#
> +#   Naughty, naughty!  How many Zope3 developers are going to have
> +#   that directory structure?  The 'ctags' package is capable of generating
> +#   both emacs-sytle and vi-style tags files from python source;  can the
> +#   emacs-provided 'etags' not read Python?
> +#
>  TAGS:
>  	python ~/trunk/Tools/scripts/eptags.py `find . -name \*.py`
>  #	etags `find . -name \*.py -print`
> +
> +tags:
> +	ctags -R

ctags/etags can read Python just fine, but it doesn't create tag
entries for certain things that I find very useful.  I tried this
briefly and found that I liked the TAGS file generated by eptags.py
much better.  (I don't recall what the differences were, just that
they were there.)

Feel free to remove the Guido-specific code, I'll do it differently.

--Guido van Rossum (home page: http://www.python.org/~guido/)