From 80513cbca875a032d2e2f3bd94efb87afedc04cc Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Thu, 16 Nov 1995 18:27:07 +0000 Subject: [PATCH] Initial revision --- lib/am/tags.am | 11 +++++++++++ tags-subd.am | 9 +++++++++ tags.am | 11 +++++++++++ 3 files changed, 31 insertions(+) create mode 100644 lib/am/tags.am create mode 100644 tags-subd.am create mode 100644 tags.am 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 -- 2.43.5