summaryrefslogtreecommitdiff
path: root/lib/am/subdirs.am
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>1999-03-11 22:31:07 +0000
committerTom Tromey <tromey@redhat.com>1999-03-11 22:31:07 +0000
commitfc690f4170e60d7b93c42d2a207ef9be3636f36d (patch)
tree5a53ca091ee79f8823aca3f33b5d3be7e685eb7a /lib/am/subdirs.am
parentcfe7cd15c623430376081fb50b87d7bee944e6d8 (diff)
downloadautomake-fc690f4170e60d7b93c42d2a207ef9be3636f36d.tar.gz
From Ralf Corsepius. Fixes lex3.test.
* automake.in (lang_yacc_finish): Include `.' in name pushed onto maintainer-clean list. (lang_lex_finish): Likewise.
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"; \