From: Stefano Lattarini Date: Thu, 7 Jun 2012 17:19:15 +0000 (+0200) Subject: tags (ID, cscope): also process config header (if any) X-Git-Tag: v1.12b~134 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=32fab2739b960d4dfa393e8d88160f29e9a4b169;p=thirdparty%2Fautomake.git tags (ID, cscope): also process config header (if any) * lib/am/tags.am (cscopelist, ID): Also scan the file given by the '%CONFIG%' transform, for consistency by what is done by the 'TAGS' and 'CTAGS' rules. Signed-off-by: Stefano Lattarini --- diff --git a/lib/am/tags.am b/lib/am/tags.am index fccacca49..37412caaf 100644 --- a/lib/am/tags.am +++ b/lib/am/tags.am @@ -18,9 +18,9 @@ ## ID. ## ## ---- ## -ID: $(HEADERS) $(SOURCES) $(LISP) $(TAGS_FILES) +ID: $(HEADERS) $(SOURCES) %CONFIG% $(TAGS_FILES) $(LISP) ## Make sure the list of sources is unique. - list='$(SOURCES) $(HEADERS) $(LISP) $(TAGS_FILES)'; \ + list='$(SOURCES) %CONFIG% $(HEADERS) $(LISP) $(TAGS_FILES)'; \ unique=`for i in $$list; do \ ## Handle VPATH correctly. if test -f "$$i"; then echo $$i; else echo $(srcdir)/$$i; fi; \ @@ -153,8 +153,8 @@ cscope.files: clean-cscope %CSCOPEDIRS% cscopelist endif %?TOPDIR_P% .PHONY: cscopelist -cscopelist: %CSCOPEDIRS% $(HEADERS) $(SOURCES) $(LISP) - list='$(SOURCES) $(HEADERS) $(LISP)'; \ +cscopelist: %CSCOPEDIRS% $(HEADERS) $(SOURCES) %CONFIG% $(LISP) + list='$(HEADERS) $(SOURCES) %CONFIG% $(LISP)'; \ case "$(srcdir)" in \ [\\/]* | ?:[\\/]*) sdir="$(srcdir)" ;; \ *) sdir=$(subdir)/$(srcdir) ;; \