]> granicus.if.org Git - mutt/commitdiff
Make make ctags actually work
authorEike Rathke <erack@erack.de>
Sat, 23 Jun 2018 08:25:15 +0000 (10:25 +0200)
committerEike Rathke <erack@erack.de>
Sat, 23 Jun 2018 08:28:25 +0000 (10:28 +0200)
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.

intl/Makefile.in
po/Makefile.in.in

index c16a47807c815fe8ca01678a3aa007b8fb22fa3b..8c581a6de3d7f379c18e348aa72fb940ff50114e 100644 (file)
@@ -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 \
index d718e272ad38df27ed75add22e46c949c67dc93e..772ac1d5a0ea876ee5ed0890b105827160ecf842 100644 (file)
@@ -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