From 3d149321528829122ece0b045c4617a56a0f34b8 Mon Sep 17 00:00:00 2001 From: Brian Palmer Date: Wed, 26 Jun 2002 22:32:43 +0000 Subject: [PATCH] Fixed Makefile so it will work when you do a clean checkout and the tools aren't already built. svn path=/trunk/; revision=3152 --- freeldr/freeldr/Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/freeldr/freeldr/Makefile b/freeldr/freeldr/Makefile index 22a8bd51275..61f9abd16a9 100644 --- a/freeldr/freeldr/Makefile +++ b/freeldr/freeldr/Makefile @@ -69,11 +69,14 @@ MAKETARGET = $(MAKE) --no-print-directory -C $(OUTPUT_DIR) \ -f ../../Makefile SRCDIR=$(CURDIR) $(MAKECMDGOALS) .PHONY: CHANGE_TO_TARGET -CHANGE_TO_TARGET: $(OBJDIR) $(OBJDIR)/$(TARGET) - @$(MAKE) --no-print-directory -C $(TOOLSDIR) +CHANGE_TO_TARGET: BUILD_TOOLS $(OBJDIR) $(OBJDIR)/$(TARGET) @echo Calculating source file dependencies... +@$(MAKETARGET) +.PHONY: BUILD_TOOLS +BUILD_TOOLS: + @$(MAKE) --no-print-directory -C $(TOOLSDIR) + $(OBJDIR): @echo Creating directory: $(OBJDIR) @$(MKDIR) $(OBJDIR)