Makefile.am.in 952 Bytes
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 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29

.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 -o $$here/tags $(CTAGS_ARGS) $$tags $(CONFIG_HEADER) $$unique $(LISP))

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