From b04ef6f7798216db14b1d69b26ad62f0c1fcc339 Mon Sep 17 00:00:00 2001 From: ben Date: Thu, 10 Jan 2008 18:40:26 +0000 Subject: allow generation of ctags and etags git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25661 b3059339-0415-0410-9bf9-f77b7e298cf2 --- Makefile | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 7f0b35b897..219b514afa 100644 --- a/Makefile +++ b/Makefile @@ -302,7 +302,7 @@ uninstall: 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 @@ distclean:: doxygen_clean 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 @@ gui/libgui.a: .norecurse $(wildcard gui/*.[ch] gui/*/*.[ch] gui/*/*/*.[ch]) 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 -- cgit v1.2.3