Version 0.25
[automake.git] / tags.am
bloba01bd8da26ffac7c85bbc48cf2c0e3111d0404e4
1 tags: TAGS
3 TAGS:
4         tags=;                                  \
5         here=`pwd`;                             \
6         for subdir in $(SUBDIRS); do            \
7 ## Never fail here if a subdir fails.
8           (cd $$subdir && $(MAKE) TAGS);        \
9           test -f $$subdir/TAGS && {            \
10             tags="$$tags -i $$here/$$subdir/TAGS"; \
11           }                                     \
12         done;                                   \
13 ## Make sure we have something to run etags on.  See clean.am to
14 ## understand "if...else" braindamage.
15         test -n "$(ETAGS_ARGS)$(CONFIG_HEADER)$(SOURCES)$(HEADERS)$$tags" \
16           && etags $(ETAGS_ARGS) $$tags $(CONFIG_HEADER) $(SOURCES) $(HEADERS)