Makefile.am.in 1.12 KB
Newer Older
1
## Process this file with make_am to produce Makefile.am
2
CVS_HEADERS: cvs_headers
3
BODY:
4
5

EXTRA_DIST = $(cvs_headers) Makefile.am.in
6

Niels Möller's avatar
Niels Möller committed
7
8
9
Makefile.am: Makefile.am.in
	(cd $(top_srcdir); ./make_am)

10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
.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" \
Niels Möller's avatar
Niels Möller committed
28
29
30
	  || (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.
31
32
33
34

# Override the standard distclean-tags target, as this doesn't support `tags'
distclean-tags:
	-rm -f TAGS ID tags