379 |
|
|
380 |
# TAGS files |
# TAGS files |
381 |
ifneq ($(dir),.) |
ifneq ($(dir),.) |
382 |
ifeq ($(SRCS),) |
ifdef configured |
383 |
TAGS: $(OTHERTAGS) |
ifneq ($(OBJS:.o=.d),) |
384 |
ifeq ($(OTHERTAGS),) |
DEP_SRCS = sed -e 's/^.*://' -e 's/ \\$$//' | tr ' ' '\012'| \ |
385 |
|
sed -n -e 's@^$(srcdir)@&@p' -e 's@^[^/]@&@p' | sort -ur |
386 |
|
TAGSFILES=$(OBJS:.o=.d) $(OTHERTAGS) |
387 |
|
else |
388 |
|
TAGSFILES=$(OTHERTAGS) |
389 |
|
endif |
390 |
|
else |
391 |
|
TAGSFILES=$(SRCS) $(OTHERTAGS) |
392 |
|
endif |
393 |
|
|
394 |
|
TAGS: $(TAGSFILES) |
395 |
|
ifeq ($(strip($(TAGSFILES))),) |
396 |
# no tags, but parent will include this file, so make empty one. |
# no tags, but parent will include this file, so make empty one. |
397 |
> $@ |
> $@ |
398 |
else |
else |
399 |
etags -o $@ $^ |
ifdef DEP_SRCS |
400 |
endif |
cat $(OBJS:.o=.d) | $(DEP_SRCS) | etags -o $@ - $(OTHERTAGS) |
401 |
else |
else |
|
TAGS: $(SRCS) $(OTHERTAGS) |
|
402 |
etags -o $@ $^ |
etags -o $@ $^ |
403 |
endif |
endif |
404 |
endif |
endif |
405 |
|
endif |
406 |
|
|
407 |
# Cleaning |
# Cleaning |
408 |
ifeq ($(clean),yes) |
ifeq ($(clean),yes) |