From: Tom Tromey Date: Thu, 16 Nov 1995 18:27:07 +0000 (+0000) Subject: Initial revision X-Git-Tag: Release-0-25~311 X-Git-Url: https://sourceware.org/git/?a=commitdiff_plain;h=80513cbca875a032d2e2f3bd94efb87afedc04cc;p=automake.git Initial revision --- diff --git a/lib/am/tags.am b/lib/am/tags.am new file mode 100644 index 00000000..88d653e5 --- /dev/null +++ b/lib/am/tags.am @@ -0,0 +1,11 @@ +tags TAGS:: + tags=; \ + for subdir in $(SUBDIRS); do \ + (cd $$subdir && $(MAKE) TAGS); \ + if test -f $$subdir/TAGS; then \ + tags="$$tags -i $$subdir/TAGS"; \ + fi; \ + done; \ + if test -n "$(ETAGS_ARGS)$(CONFIG_HEADER)$$tags"; then \ + etags $(ETAGS_ARGS) $$tags $(CONFIG_HEADER) \ + fi diff --git a/tags-subd.am b/tags-subd.am new file mode 100644 index 00000000..06f13dd7 --- /dev/null +++ b/tags-subd.am @@ -0,0 +1,9 @@ +id:: ID + +ID:: + here=`pwd`; cd $(srcdir) && mkid -f $$here/ID $(SOURCES) $(HEADERS) + +tags:: TAGS + +TAGS:: + here=`pwd`; cd $(srcdir) && etags $(ETAGS_ARGS) $(SOURCES) $(HEADERS) -o $$here/TAGS diff --git a/tags.am b/tags.am new file mode 100644 index 00000000..88d653e5 --- /dev/null +++ b/tags.am @@ -0,0 +1,11 @@ +tags TAGS:: + tags=; \ + for subdir in $(SUBDIRS); do \ + (cd $$subdir && $(MAKE) TAGS); \ + if test -f $$subdir/TAGS; then \ + tags="$$tags -i $$subdir/TAGS"; \ + fi; \ + done; \ + if test -n "$(ETAGS_ARGS)$(CONFIG_HEADER)$$tags"; then \ + etags $(ETAGS_ARGS) $$tags $(CONFIG_HEADER) \ + fi