aboutsummaryrefslogtreecommitdiff
path: root/Makeconf
diff options
context:
space:
mode:
Diffstat (limited to 'Makeconf')
-rw-r--r--Makeconf10
1 files changed, 10 insertions, 0 deletions
diff --git a/Makeconf b/Makeconf
index b7d4202e..12c10f9e 100644
--- a/Makeconf
+++ b/Makeconf
@@ -309,9 +309,19 @@ endif
ifneq ($(dir),.)
DEP_SRCS = sed -e 's/^.*://' -e 's/ \\$$//' | tr ' ' '\012'| \
sed -n -e 's@^$(srcdir)@&@p' -e 's@^[^/]@&@p' | sort -ur
+ifeq ($(OBJS),)
+TAGS: $(OTHERTAGS)
+ifeq ($(OTHERTAGS),)
+# no tags, but parent will include this file, so make empty one.
+ > $@
+else
+ etags -o $@ $^
+endif
+else
TAGS: $(OBJS:.o=.d) $(OTHERTAGS)
cat $(OBJS:.o=.d) | $(DEP_SRCS) | etags -o $@ - $(OTHERTAGS)
endif
+endif
# Cleaning
ifeq ($(clean),yes)