summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1995-08-28 13:59:47 +0000
committerMiles Bader <miles@gnu.org>1995-08-28 13:59:47 +0000
commite8428c9ce27f4e8e6ef0967905e6e1c8738d349d (patch)
tree4545185a6ae63871d74769c15c2ebe41f4f3f56f
parent057ef3f74ac1a767557bf80ae6e94b0441a30f1e (diff)
(TAGS): Automagically find all the files to scan from the dependency
information.
-rw-r--r--Makeconf6
1 files changed, 3 insertions, 3 deletions
diff --git a/Makeconf b/Makeconf
index ea206fcd..f9edf1d5 100644
--- a/Makeconf
+++ b/Makeconf
@@ -176,11 +176,11 @@ endif
# TAGS files
ifneq ($(dir),.)
-TAGS: $(SRCS) $(LCLHDRS) $(OTHERTAGS)
- etags -o $@ $(SRCS) $(LCLHDRS) $(OTHERTAGS)
+DEP_SRCS=sed -e 's/^.*://' -e 's/ \\$$//' | tr ' ' '\012'| sed -n -e 's@^$(srcdir)@&@p' -e 's@^[^/]@&@p' | sort -u
+TAGS: $(OBJS:.o=.d) $(OTHERTAGS)
+ cat $(OBJS:.o=.d) | $(DEP_SRCS) | etags -o $@ - $(OTHERTAGS)
endif
-
# Cleaning
ifeq ($(clean),yes)
clean: