summaryrefslogtreecommitdiff
path: root/lib/am/subdirs.am
diff options
context:
space:
mode:
Diffstat (limited to 'lib/am/subdirs.am')
-rw-r--r--lib/am/subdirs.am6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/am/subdirs.am b/lib/am/subdirs.am
index f3642933b..ab96f5b65 100644
--- a/lib/am/subdirs.am
+++ b/lib/am/subdirs.am
@@ -1,5 +1,5 @@
## automake - create Makefile.in from Makefile.am
-## Copyright (C) 1994, 1995, 1996, 1997, 1998 Free Software Foundation, Inc.
+## Copyright (C) 1994, 1995, 1996, 1997, 1998, 1999 Free Software Foundation, Inc.
## This program is free software; you can redistribute it and/or modify
## it under the terms of the GNU General Public License as published by
@@ -59,7 +59,9 @@ maintainer-clean-recursive:
dot_seen=no; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
rev="$$subdir $$rev"; \
- test "$$subdir" = "." && dot_seen=yes; \
+## FreeBSD make/sh will exit if the test fails and we use "&&";
+## hence the `if'.
+ if test "$$subdir" = "."; then dot_seen=yes; else :; fi; \
done; \
## If we haven't seen `.', then add it at the beginning.
test "$$dot_seen" = "no" && rev=". $$rev"; \