summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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: