changeset 25633:7ab58f012dd3

allow generation of ctags and etags
author ben
date Thu, 10 Jan 2008 18:40:26 +0000
parents 61bc7acb7bb1
children 4344e84f7a9f
files Makefile
diffstat 1 files changed, 10 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/Makefile	Thu Jan 10 12:44:17 2008 +0000
+++ b/Makefile	Thu Jan 10 18:40:26 2008 +0000
@@ -302,7 +302,7 @@
 clean::
 	-rm -f mplayer$(EXESUF) mencoder$(EXESUF) codec-cfg$(EXESUF) \
 	  codecs2html$(EXESUF) codec-cfg-test$(EXESUF) cpuinfo$(EXESUF) \
-	  codecs.conf.h help_mp.h version.h
+	  codecs.conf.h help_mp.h version.h TAGS tags
 	@for a in $(PARTS); do $(MAKE) -C $$a clean; done
 
 distclean:: doxygen_clean
@@ -313,6 +313,14 @@
 strip:
 	strip -s $(ALL_PRG)
 
+TAGS:
+	@rm -f $@; \
+	( find -name '*.[chS]' -print ) | xargs etags -a
+
+tags:
+	@rm -f $@; \
+	( find -name '*.[chS]' -print ) | xargs ctags -a;
+
 # ./configure must be rerun if it changed
 config.mak: configure
 	@echo "############################################################"
@@ -399,4 +407,4 @@
 
 libass/libass.a: .norecurse $(wildcard libass/*.[ch])
 
-.PHONY: all install* uninstall strip doxygen doxygen_clean
+.PHONY: all install* uninstall strip doxygen doxygen_clean TAGS tags