summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-10 18:40:26 +0000
committerben <ben@b3059339-0415-0410-9bf9-f77b7e298cf2>2008-01-10 18:40:26 +0000
commitb04ef6f7798216db14b1d69b26ad62f0c1fcc339 (patch)
treeb3a798a13a81c7cb20e34450fa4c0b9f5e7e16b8 /Makefile
parent73f51e7f784447cc4b9532276c879c3e6c1688ee (diff)
downloadmpv-b04ef6f7798216db14b1d69b26ad62f0c1fcc339.tar.bz2
mpv-b04ef6f7798216db14b1d69b26ad62f0c1fcc339.tar.xz
allow generation of ctags and etags
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@25661 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile12
1 files changed, 10 insertions, 2 deletions
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