[MPlayer-cvslog] r25661 - trunk/Makefile

ben subversion at mplayerhq.hu
Thu Jan 10 19:40:27 CET 2008


Author: ben
Date: Thu Jan 10 19:40:26 2008
New Revision: 25661

Log:
allow generation of ctags and etags



Modified:
   trunk/Makefile

Modified: trunk/Makefile
==============================================================================
--- trunk/Makefile	(original)
+++ trunk/Makefile	Thu Jan 10 19:40:26 2008
@@ -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/
 
 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



More information about the MPlayer-cvslog mailing list