Commit 51f81e9c authored by Niels Möller's avatar Niels Möller
Browse files

* misc/ctags.mk: Deleted file. Not needed anymore, since automake

supports ctags it out of the box.
* Makefile.am.in: Don't include ctags.mk.
* src/Makefile.am.in: Likewise.

Rev: Makefile.am.in:1.17
Rev: misc/ctags.mk:1.2(DEAD)
Rev: src/Makefile.am.in:1.133
parent 23f04c23
......@@ -45,5 +45,3 @@ all-recursive check-recursive: config.h
EXTRA_DIST = ANNOUNCE AUTHORS FAQ README COPYING ChangeLog ChangeLog.1 NEWS FAQ \
Makefile.am.in make_am distribution-key.gpg
include $(top_srcdir)/misc/ctags.mk
# ctags support. Automake only supports etags. We base our ctags support on
# automake's etags support.
.PHONY: ctags-recursive ctags
ctags-recursive:
list='$(SUBDIRS)'; for subdir in $$list; do \
(cd $$subdir && $(MAKE) ctags); \
done
ctags: ctags-recursive $(HEADERS) $(SOURCES) $(CONFIG_HEADER) $(TAGS_DEPENDENCIES) $(LISP)
tags=; \
here=`pwd`; \
list='$(SUBDIRS)'; for subdir in $$list; do \
test -f $$subdir/tags && tags="$$tags $$here/$$subdir/tags"; \
done; \
list='$(SOURCES) $(HEADERS)'; \
unique=`for i in $$list; do echo $$i; done | \
awk ' { files[$$0] = 1; } \
END { for (i in files) print i; }'`; \
test -z "$(CTAGS_ARGS)$(CONFIG_HEADER)$$unique$(LISP)$$tags" \
|| (cd $(srcdir) && ctags --langmap=c:.c.x -o $$here/tags $(CTAGS_ARGS) $$tags $(CONFIG_HEADER) $$unique $(LISP))
# This treats .h.x files as C files rather than headers, but we can't
# distinguish them from .c.x files with ctags.
# Override the standard distclean-tags target, as this doesn't support `tags'
distclean-tags:
-rm -f TAGS ID tags
......@@ -191,4 +191,3 @@ depend:
ETAGS_ARGS = -r '/ (name[ \t]+\([a-zA-Z0-9_]+\)/\1/' \
-r '/DEFINE[^(]*(\([a-zA-Z0-9_]+\)/\1/'
include $(top_srcdir)/misc/ctags.mk
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment