Slightly safer test for LOOP_OVER_DIRS. Make sure a Makefile is there. This handles the case of 'gmake -f client.mk checkout clean build' where checkout adds a directory. ('clean' does not run configure. In fact, 'clean' removes files that configure generates.)

This commit is contained in:
slamm%netscape.com 1999-04-27 23:08:59 +00:00
Родитель 2496f14a92
Коммит 2879fada95
1 изменённых файлов: 2 добавлений и 2 удалений

Просмотреть файл

@ -239,8 +239,8 @@ endif
ifdef DIRS
LOOP_OVER_DIRS = \
@for d in $(DIRS); do \
$(UPDATE_TITLE); \
if test -d $$d; then \
$(UPDATE_TITLE); \
if test -f $$d/Makefile; then \
set $(EXIT_ON_ERROR); \
echo "cd $$d; $(MAKE) $@"; \
oldDir=`pwd`; \