Provide a VIM-compatible tag file, too.
authorPhilipp Marek <philipp@marek.priv.at>
Wed, 26 Feb 2014 20:14:36 +0000 (21:14 +0100)
committerPhilipp Marek <philipp@marek.priv.at>
Wed, 26 Feb 2014 20:14:36 +0000 (21:14 +0100)
README.1st
src/Makefile.in

index 68193fc..0f6094e 100644 (file)
@@ -15,6 +15,13 @@ This is a GDB function that prints a 'cl_object' human-readably:
 
 
 
+Using VIM:
+----------
+
+.git/tags is a VIM-compatible tag file; if you're using
+the fugitive plugin, it will be used automatically.
+
+
 
 About testing:
 --------------
index 8b5eab6..4b2070d 100644 (file)
@@ -51,7 +51,7 @@ LSP_LIBRARIES = @LSP_LIBRARIES@
 TARGETS = @TARGETS@
 ECL_CMPDIR = @ECL_CMPDIR@
 
-all:   $(TARGETS) bin/ecl-config TAGS
+all:   $(TARGETS) bin/ecl-config .git/tags TAGS
 .PHONY:        all
 
 %Makefile: $(srcdir)/%Makefile.in config.status
@@ -258,6 +258,8 @@ selfbuild:
 # Make sure to also include *.d files; and match DPP's idiosyncracies
 # like "@si::foo" and "@(defun si::foo".
 # This rule is allowed to fail when etags does not exist.
+.git/tags:
+       cd $(srcdir)/.git && ctags -o tags -R --langmap=c:+.d ../src
 TAGS:
        -if test "x$(ETAGS)" != "x"; then \
        srcfiles=`find $(srcdir)/c $(srcdir)/h -name '*.[chd]'` && \