summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>1998-10-20 08:10:53 +0000
committerRoland McGrath <roland@gnu.org>1998-10-20 08:10:53 +0000
commite86077d44eac2100e701103995caf0ff7b951865 (patch)
treee7a104df80be3c3c7d9b8c616eb9f8c1ed7d1fa7
parent11d3c019825ffc34407e6a35459210033fd44046 (diff)
1998-10-20 Roland McGrath <roland@baalperazim.frob.com>
* Makeconf (TAGS): Make rules cope with having no source files to tag.
-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)