/[hurd]/hurd/Makeconf
ViewVC logotype

Diff of /hurd/Makeconf

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.196 by roland, Sat Dec 22 20:45:52 2001 UTC revision 1.197 by roland, Sat Dec 22 23:43:37 2001 UTC
# Line 379  endif Line 379  endif
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)

Legend:
Removed from v.1.196  
changed lines
  Added in v.1.197

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26