From e86077d44eac2100e701103995caf0ff7b951865 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Tue, 20 Oct 1998 08:10:53 +0000 Subject: 1998-10-20 Roland McGrath * Makeconf (TAGS): Make rules cope with having no source files to tag. --- Makeconf | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'Makeconf') 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) -- cgit v1.2.3