* tags.am: Fix missing leading tabs.
authorAkim Demaille <akim@epita.fr>
Mon, 9 Apr 2001 14:48:34 +0000 (14:48 +0000)
committerAkim Demaille <akim@epita.fr>
Mon, 9 Apr 2001 14:48:34 +0000 (14:48 +0000)
ChangeLog
lib/am/tags.am
tags.am

index 4c686c2..db8fba3 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2001-04-09  Akim Demaille  <akim@epita.fr>
 
+       * tags.am: Fix missing leading tabs.
+
+2001-04-09  Akim Demaille  <akim@epita.fr>
+
        * automake.in: Use simple quotes to define the _PATTERN variables
        to unobfuscate the regexps.
        ($AM_CONDITIONAL_PATTERN): Let the user quote the variable.
index 7dbabde..9f85768 100644 (file)
@@ -45,11 +45,13 @@ TAGS: %DIRS% $(HEADERS) $(SOURCES) %CONFIG% $(TAGS_DEPENDENCIES) \
                $(TAGS_FILES) $(LISP)
        tags=; \
        here=`pwd`; \
+## It is tempting to use if/endif here, but don't: the previous
+## backslash will cause bad results (automake doesn't `see' the `if').
 ?SUBDIRS?      list='$(SUBDIRS)'; for subdir in $$list; do \
 ## Do nothing if we're trying to look in `.'.
-?SUBDIRS?   if test "$$subdir" = .; then :; else \
+?SUBDIRS?        if test "$$subdir" = .; then :; else \
 ?SUBDIRS?          test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
-?SUBDIRS?   fi; \
+?SUBDIRS?        fi; \
 ?SUBDIRS?      done; \
 ## Make sure the list of sources is unique.
        list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \
diff --git a/tags.am b/tags.am
index 7dbabde..9f85768 100644 (file)
--- a/tags.am
+++ b/tags.am
@@ -45,11 +45,13 @@ TAGS: %DIRS% $(HEADERS) $(SOURCES) %CONFIG% $(TAGS_DEPENDENCIES) \
                $(TAGS_FILES) $(LISP)
        tags=; \
        here=`pwd`; \
+## It is tempting to use if/endif here, but don't: the previous
+## backslash will cause bad results (automake doesn't `see' the `if').
 ?SUBDIRS?      list='$(SUBDIRS)'; for subdir in $$list; do \
 ## Do nothing if we're trying to look in `.'.
-?SUBDIRS?   if test "$$subdir" = .; then :; else \
+?SUBDIRS?        if test "$$subdir" = .; then :; else \
 ?SUBDIRS?          test -f $$subdir/TAGS && tags="$$tags -i $$here/$$subdir/TAGS"; \
-?SUBDIRS?   fi; \
+?SUBDIRS?        fi; \
 ?SUBDIRS?      done; \
 ## Make sure the list of sources is unique.
        list='$(SOURCES) $(HEADERS) $(TAGS_FILES)'; \