Fixed possible infinite loop in dependency.

This commit is contained in:
mang%netscape.com 1998-11-05 02:13:43 +00:00
Родитель 0a50098916
Коммит adbd81b844
1 изменённых файлов: 14 добавлений и 1 удалений

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

@ -22,6 +22,8 @@ ifdef MOZ_OJI
DIRS = liveconnect
endif
DIRS += fdlibm
LIBRARY_NAME = js
ifeq ($(subst /,_,$(shell uname -s)),OS2)
@ -211,8 +213,19 @@ else
$(CC) -o $@ -c $(CFLAGS) $<
endif
# ripped from mozilla/config/rules.mk
$(FDLIBM_LIBRARY):
cd fdlibm; $(MAKE)
@if test -d fdlibm; then \
set -e; \
set $(EXIT_ON_ERROR); \
echo "cd fdlibm; $(MAKE) $(OBJDIR)/$(@F)"; \
oldDir=`pwd`; \
cd fdlibm; $(MAKE) $(OBJDIR)/$(@F); cd $$oldDir; \
set +e; \
else \
echo "Error - directory fdlibm does not exit..."; \
fi; \
$(CLICK_STOPWATCH);
# this requires clobbering and recompiling with XCFLAGS=-DJSFILE
js: