summaryrefslogtreecommitdiff
path: root/toolchain/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'toolchain/Makefile')
-rw-r--r--toolchain/Makefile13
1 files changed, 6 insertions, 7 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile
index 2c4b24db2..1e36c6b5f 100644
--- a/toolchain/Makefile
+++ b/toolchain/Makefile
@@ -32,7 +32,6 @@ DOWNLOAD:=kernel-headers-download $(patsubst %,%-download,$(TARGETS))
TARGETS_INSTALL:=$(patsubst %,%-install,$(TARGETS))
TARGETS_CLEAN:=$(patsubst %,%-clean,$(TARGETS))
-all: install
install: $(TARGETS_INSTALL)
clean: $(TARGETS_CLEAN)
download: $(DOWNLOAD)
@@ -47,11 +46,11 @@ gcc-configure: $(LIBC)-prepare
$(LIBC)-compile: gcc-configure
gcc-compile: $(LIBC)-install
-$(STAGING_TOOLS):
- @mkdir -p $(STAGING_TOOLS)/lib
- @mkdir -p $(STAGING_TOOLS)/include
- @mkdir -p $(STAGING_TOOLS)/$(REAL_GNU_TARGET_NAME)
- @ln -sf ../lib $(STAGING_TOOLS)/$(REAL_GNU_TARGET_NAME)/lib
+$(STAGING_HOST_DIR):
+ @mkdir -p $(STAGING_HOST_DIR)/lib
+ @mkdir -p $(STAGING_HOST_DIR)/include
+ @mkdir -p $(STAGING_HOST_DIR)/$(REAL_GNU_TARGET_NAME)
+ @ln -sf ../lib $(STAGING_HOST_DIR)/$(REAL_GNU_TARGET_NAME)/lib
$(TOOLCHAIN_BUILD_DIR):
@mkdir -p $(TOOLCHAIN_BUILD_DIR)
@@ -60,7 +59,7 @@ $(TOOLCHAIN_BUILD_DIR):
$(TRACE) toolchain/$(patsubst %-download,%,$@)/download
$(MAKE) -C $(patsubst %-download,%,$@) fetch
-%-prepare: $(STAGING_TOOLS) $(TOOLCHAIN_BUILD_DIR)
+%-prepare: $(STAGING_HOST_DIR) $(TOOLCHAIN_BUILD_DIR)
$(TRACE) toolchain/$(patsubst %-prepare,%,$@)/prepare
@if test x"$(patsubst %-prepare,%,$@)" = x"$(LIBC)"; then \
$(MAKE) -C $(patsubst %-prepare,%,$@) prepare \