about summary refs log tree commit diff
path: root/GNUmakefile
diff options
context:
space:
mode:
authorgiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-11-05 22:37:49 +0000
committergiraffedata <giraffedata@9d0c8265-081b-0410-96cb-a4ca84ce46f8>2007-11-05 22:37:49 +0000
commitb6457978f80e09d7519b268b670134d25ee1a906 (patch)
tree8d575a376971f28277acdd65d5e9908050a32d50 /GNUmakefile
parenta9822c1a93d44fca519efd662f76ea6b5b68d095 (diff)
downloadnetpbm-mirror-b6457978f80e09d7519b268b670134d25ee1a906.tar.gz
netpbm-mirror-b6457978f80e09d7519b268b670134d25ee1a906.tar.xz
netpbm-mirror-b6457978f80e09d7519b268b670134d25ee1a906.zip
Add Emacs tags facility
git-svn-id: http://svn.code.sf.net/p/netpbm/code/trunk@457 9d0c8265-081b-0410-96cb-a4ca84ce46f8
Diffstat (limited to 'GNUmakefile')
-rw-r--r--GNUmakefile8
1 files changed, 8 insertions, 0 deletions
diff --git a/GNUmakefile b/GNUmakefile
index fc4bdef1..49e9a9b5 100644
--- a/GNUmakefile
+++ b/GNUmakefile
@@ -392,6 +392,14 @@ localdistclean: localclean
 	-rm -f `find -type l`
 	-rm -f Makefile.config
 
+# 'tags' generates/updates an Emacs tags file, anmed TAGS, in the current
+# directory.  Use with Emacs command 'find-tag'.
+
+.PHONY: tags
+tags:
+	find . -name "*.c" -o -name "*.h" -o -name "*.cpp" -o -name "*.hpp" | \
+	  etags -
+
 # The following endif is for the else block that contains virtually the
 # whole file, for the test of the existence of CURDIR.
 endif