From: Eike Rathke Date: Sat, 23 Jun 2018 08:25:15 +0000 (+0200) Subject: Make make ctags actually work X-Git-Tag: mutt-1-11-rel~131 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=f24a1bcae6aaed457bd3297737761dd1bb19f29a;p=mutt Make make ctags actually work make ctags broke with Making ctags in po make[1]: Entering directory '.../mutt/po' make[1]: *** No rule to make target 'ctags'. Stop. make[1]: Leaving directory '.../mutt/po' Makefile:867: recipe for target 'ctags-recursive' failed make: *** [ctags-recursive] Error 1 and once fixed the same in intl/ Note that this ctags target scatters tags files over directories. If you use exuberant ctags then simply run ctags -R once in mutt's root dir instead. --- diff --git a/intl/Makefile.in b/intl/Makefile.in index c16a4780..8c581a6d 100644 --- a/intl/Makefile.in +++ b/intl/Makefile.in @@ -257,6 +257,11 @@ $(OBJECTS): ../config.h libgnuintl.h bindtextdom.$lo finddomain.$lo loadmsgcat.$lo: gettextP.h gettext.h loadinfo.h dcgettext.$lo: gettextP.h gettext.h hash-string.h loadinfo.h +.PHONY: ctags id tags + +ctags: $(HEADERS) $(SOURCES) + here=`pwd`; cd $(srcdir) && ctags -o $$here/tags $(HEADERS) $(SOURCES) + tags: TAGS TAGS: $(HEADERS) $(SOURCES) @@ -276,7 +281,7 @@ mostlyclean: clean: mostlyclean distclean: clean - rm -f Makefile ID TAGS + rm -f Makefile ID TAGS tags if test "$(PACKAGE)" = gettext; then \ rm -f ChangeLog.inst $(DISTFILES.normal); \ else \ diff --git a/po/Makefile.in.in b/po/Makefile.in.in index d718e272..772ac1d5 100644 --- a/po/Makefile.in.in +++ b/po/Makefile.in.in @@ -149,7 +149,7 @@ uninstall: check: all -dvi info tags TAGS ID: +ctags dvi info tags TAGS ID: mostlyclean: rm -f core core.* *.pox $(PACKAGE).po *.new.po