diff options
author | Roland McGrath <roland@gnu.org> | 1998-10-20 08:10:53 +0000 |
---|---|---|
committer | Roland McGrath <roland@gnu.org> | 1998-10-20 08:10:53 +0000 |
commit | e86077d44eac2100e701103995caf0ff7b951865 (patch) | |
tree | e7a104df80be3c3c7d9b8c616eb9f8c1ed7d1fa7 | |
parent | 11d3c019825ffc34407e6a35459210033fd44046 (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-- | Makeconf | 10 |
1 files changed, 10 insertions, 0 deletions
@@ -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) |