* (bug 3692) Makefile infinitely recurses if no targets are defined

This commit is contained in:
Tim Angus 2008-07-05 22:34:23 +00:00
parent 1e21a3e258
commit 956ce9bf12

View file

@ -964,7 +964,9 @@ targets: makedirs
echo " $$i"; \ echo " $$i"; \
done done
@echo "" @echo ""
ifneq ($(TARGETS),)
@$(MAKE) $(TARGETS) V=$(V) @$(MAKE) $(TARGETS) V=$(V)
endif
makedirs: makedirs:
@if [ ! -d $(BUILD_DIR) ];then $(MKDIR) $(BUILD_DIR);fi @if [ ! -d $(BUILD_DIR) ];then $(MKDIR) $(BUILD_DIR);fi