in `.' after all subdirs. Fixes PR automake/3 and PR automake/24.
2000-08-26 Tom Tromey <tromey@cygnus.com>
+ * subdirs.am (maintainer-clean-recursive): Always run clean rules
+ in `.' after all subdirs. Fixes PR automake/3 and PR automake/24.
+
* automake.in (handle_man_pages): Generate install targets for man
even if man_MANS not defined. From `danpb'. Fixes PR automake/73.
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
- rev="$$subdir $$rev"; \
-## FreeBSD make/sh will exit if the test fails and we use "&&";
-## hence the `if'.
- if test "$$subdir" = "."; then dot_seen=yes; else :; fi; \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
done; \
-## If we haven't seen `.', then add it at the beginning.
- test "$$dot_seen" = "no" && rev=". $$rev"; \
+## Always do `.' last.
+ rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \
@set fnord $(MAKEFLAGS); amf=$$2; \
dot_seen=no; \
rev=''; list='$(SUBDIRS)'; for subdir in $$list; do \
- rev="$$subdir $$rev"; \
-## FreeBSD make/sh will exit if the test fails and we use "&&";
-## hence the `if'.
- if test "$$subdir" = "."; then dot_seen=yes; else :; fi; \
+ if test "$$subdir" = "."; then :; else \
+ rev="$$subdir $$rev"; \
+ fi; \
done; \
-## If we haven't seen `.', then add it at the beginning.
- test "$$dot_seen" = "no" && rev=". $$rev"; \
+## Always do `.' last.
+ rev="$$rev ."; \
target=`echo $@ | sed s/-recursive//`; \
for subdir in $$rev; do \
echo "Making $$target in $$subdir"; \