Fixed Makefile so it will work when you do a clean checkout and the tools aren't already built.

svn path=/trunk/; revision=3152
This commit is contained in:
Brian Palmer 2002-06-26 22:32:43 +00:00
parent ccf3e5b082
commit 3d14932152

View file

@ -69,11 +69,14 @@ MAKETARGET = $(MAKE) --no-print-directory -C $(OUTPUT_DIR) \
-f ../../Makefile SRCDIR=$(CURDIR) $(MAKECMDGOALS) -f ../../Makefile SRCDIR=$(CURDIR) $(MAKECMDGOALS)
.PHONY: CHANGE_TO_TARGET .PHONY: CHANGE_TO_TARGET
CHANGE_TO_TARGET: $(OBJDIR) $(OBJDIR)/$(TARGET) CHANGE_TO_TARGET: BUILD_TOOLS $(OBJDIR) $(OBJDIR)/$(TARGET)
@$(MAKE) --no-print-directory -C $(TOOLSDIR)
@echo Calculating source file dependencies... @echo Calculating source file dependencies...
+@$(MAKETARGET) +@$(MAKETARGET)
.PHONY: BUILD_TOOLS
BUILD_TOOLS:
@$(MAKE) --no-print-directory -C $(TOOLSDIR)
$(OBJDIR): $(OBJDIR):
@echo Creating directory: $(OBJDIR) @echo Creating directory: $(OBJDIR)
@$(MKDIR) $(OBJDIR) @$(MKDIR) $(OBJDIR)