diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-08 19:29:36 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2011-01-08 19:29:36 +0100 |
commit | 422beddb9dcf0a67afe92e70f3afef6baed6a4b0 (patch) | |
tree | e933f331d64e505bbc74228f32a888ef644f61a8 /toolchain | |
parent | a06de804c0629a9091acc46c143fefd0f2641a80 (diff) |
fix make clean target rule
correct the wrong path and remove the correct files on clean.
Finetune more directory creation rules.
Diffstat (limited to 'toolchain')
-rw-r--r-- | toolchain/Makefile | 5 | ||||
-rw-r--r-- | toolchain/eglibc/Makefile | 2 | ||||
-rw-r--r-- | toolchain/gdb/Makefile | 1 |
3 files changed, 2 insertions, 6 deletions
diff --git a/toolchain/Makefile b/toolchain/Makefile index b9a13f04a..34bd57210 100644 --- a/toolchain/Makefile +++ b/toolchain/Makefile @@ -54,14 +54,11 @@ $(STAGING_HOST_DIR): @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) - %-download: $(TRACE) toolchain/$(patsubst %-download,%,$@)/download $(MAKE) -C $(patsubst %-download,%,$@) fetch -%-prepare: $(STAGING_HOST_DIR) $(TOOLCHAIN_BUILD_DIR) +%-prepare: $(STAGING_HOST_DIR) $(TRACE) toolchain/$(patsubst %-prepare,%,$@)/prepare @if test x"$(patsubst %-prepare,%,$@)" = x"$(LIBC)"; then \ $(MAKE) -C $(patsubst %-prepare,%,$@) prepare \ diff --git a/toolchain/eglibc/Makefile b/toolchain/eglibc/Makefile index bae12678d..2db3fa6f6 100644 --- a/toolchain/eglibc/Makefile +++ b/toolchain/eglibc/Makefile @@ -4,7 +4,6 @@ include $(TOPDIR)/rules.mk include ../rules.mk include Makefile.inc - include ${TOPDIR}/mk/buildhlp.mk ifneq ($(ADK_DEBUG),) @@ -79,6 +78,7 @@ $(WRKBUILD)/.configured: ); touch $@ +$(EGLIBC_BUILD_DIR_FINAL)/libc.so: $(WRKBUILD)/.compiled: $(WRKBUILD)/.configured ${EGLIBC_ENV} $(MAKE) -C $(EGLIBC_BUILD_DIR_FINAL) all touch $@ diff --git a/toolchain/gdb/Makefile b/toolchain/gdb/Makefile index bf7c7d457..2025746cf 100644 --- a/toolchain/gdb/Makefile +++ b/toolchain/gdb/Makefile @@ -4,7 +4,6 @@ include $(TOPDIR)/rules.mk include ../rules.mk include Makefile.inc - include ${TOPDIR}/mk/buildhlp.mk ifeq (${ADK_MAKE_PARALLEL},y) |