From a413a043f777611cf15419a4408ee60f0404b1a3 Mon Sep 17 00:00:00 2001 From: Eric Andersen Date: Fri, 17 Jan 2003 08:09:39 +0000 Subject: [PATCH] update handling of 'make' --- make/cramfsroot.mk | 4 ++-- make/gcc_target.mk | 1 - make/jffs2root.mk | 2 +- make/linux.mk | 12 ++++++------ make/slang.mk | 2 +- make/tinylogin.mk | 6 +++--- make/user-mode-linux.mk | 8 ++++---- 7 files changed, 17 insertions(+), 18 deletions(-) diff --git a/make/cramfsroot.mk b/make/cramfsroot.mk index 47d1f423ca..2de865a93d 100644 --- a/make/cramfsroot.mk +++ b/make/cramfsroot.mk @@ -24,7 +24,7 @@ cramfs: $(CRAMFS_DIR)/mkcramfs cramfs-source: $(DL_DIR)/$(CRAMFS_DIR) cramfs-clean: - -make -C $(CRAMFS_DIR) clean + -$(MAKE) -C $(CRAMFS_DIR) clean cramfs-dirclean: rm -rf $(CRAMFS_DIR) @@ -45,7 +45,7 @@ cramfsroot: cramfs cramfsroot-source: $(DL_DIR)/$(GENEXT2_SOURCE) cramfsroot-clean: - -make -C $(GENEXT2_DIR) clean + -$(MAKE) -C $(GENEXT2_DIR) clean cramfsroot-dirclean: rm -rf $(GENEXT2_DIR) diff --git a/make/gcc_target.mk b/make/gcc_target.mk index cf513c3e60..fac222848f 100644 --- a/make/gcc_target.mk +++ b/make/gcc_target.mk @@ -24,7 +24,6 @@ ############################################################# GNU_TARGET_NAME:=$(ARCH)-linux TARGET_LANGUAGES:=c,c++ -MAKE:=make # If you want multilib enabled, enable this... #MULTILIB:=--enable-multilib diff --git a/make/jffs2root.mk b/make/jffs2root.mk index dd897a7d3e..8068451089 100644 --- a/make/jffs2root.mk +++ b/make/jffs2root.mk @@ -40,7 +40,7 @@ jffs2root: jffs2 jffs2root-source: $(DL_DIR)/$(GENEXT2_SOURCE) jffs2root-clean: - -make -C $(GENEXT2_DIR) clean + -$(MAKE) -C $(GENEXT2_DIR) clean jffs2root-dirclean: rm -rf $(GENEXT2_DIR) diff --git a/make/linux.mk b/make/linux.mk index 8d70ca213d..96cafa7332 100644 --- a/make/linux.mk +++ b/make/linux.mk @@ -56,16 +56,16 @@ $(LINUX_DIR)/.configured $(BUILD_DIR)/linux/.configured: $(LINUX_DIR)/.unpacked # CROSS_COMPILE=$(STAGING_DIR)/bin/$(ARCH)-uclibc-,g;" \ # $(LINUX_DIR)/Makefile -cp $(LINUX_KCONFIG) $(LINUX_DIR)/.config - make -C $(LINUX_DIR) oldconfig include/linux/version.h + $(MAKE) -C $(LINUX_DIR) oldconfig include/linux/version.h touch $(LINUX_DIR)/.configured $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.configured - make -C $(LINUX_DIR) dep + $(MAKE) -C $(LINUX_DIR) dep touch $(LINUX_DIR)/.depend_done $(LINUX_DIR)/$(LINUX_BINLOC): $(LINUX_DIR)/.depend_done - make -C $(LINUX_DIR) $(LINUX_FORMAT) - make -C $(LINUX_DIR) modules + $(MAKE) -C $(LINUX_DIR) $(LINUX_FORMAT) + $(MAKE) -C $(LINUX_DIR) modules $(LINUX_KERNEL): $(LINUX_DIR)/$(LINUX_BINLOC) cp -fa $(LINUX_DIR)/$(LINUX_BINLOC) $(LINUX_KERNEL) @@ -73,7 +73,7 @@ $(LINUX_KERNEL): $(LINUX_DIR)/$(LINUX_BINLOC) $(TARGET_DIR)/lib/modules/$(LINUX_VERSION)/modules.dep: $(LINUX_KERNEL) rm -rf $(TARGET_DIR)/lib/modules rm -f $(TARGET_DIR)/sbin/cardmgr - make -C $(LINUX_DIR) INSTALL_MOD_PATH=$(TARGET_DIR) modules_install + $(MAKE) -C $(LINUX_DIR) INSTALL_MOD_PATH=$(TARGET_DIR) modules_install (cd $(TARGET_DIR)/lib/modules; ln -s $(LINUX_VERSION)/kernel/drivers .) $(STAGING_DIR)/include/linux/version.h: $(LINUX_DIR)/.configured @@ -86,7 +86,7 @@ linux: $(STAGING_DIR)/include/linux/version.h $(TARGET_DIR)/lib/modules/$(LINUX_ # This has been renamed so we do _NOT_ by default run this on 'make clean' linuxclean: clean rm -f $(LINUX_KERNEL) - -make -C $(LINUX_DIR) clean + -$(MAKE) -C $(LINUX_DIR) clean linux-dirclean: rm -rf $(LINUX_DIR) diff --git a/make/slang.mk b/make/slang.mk index 80b6aa77c8..6dde02f361 100644 --- a/make/slang.mk +++ b/make/slang.mk @@ -38,7 +38,7 @@ slang-source: $(DL_DIR)/$(SLANG_SOURCE) slang-clean: rm -f $(TARGET_DIR)/lib/libslang.so* - -make -C $(SLANG_DIR) clean + -$(MAKE) -C $(SLANG_DIR) clean slang-dirclean: rm -rf $(SLANG_DIR) diff --git a/make/tinylogin.mk b/make/tinylogin.mk index ccfb5e93e0..7af9f4e6a4 100644 --- a/make/tinylogin.mk +++ b/make/tinylogin.mk @@ -33,16 +33,16 @@ $(TINYLOGIN_DIR)/Config.h: $(DL_DIR)/$(TINYLOGIN_SOURCE) touch $(TINYLOGIN_DIR)/Config.h $(TINYLOGIN_DIR)/tinylogin: $(TINYLOGIN_DIR)/Config.h - make CROSS="$(TARGET_CROSS)" -C $(TINYLOGIN_DIR) + $(MAKE) CROSS="$(TARGET_CROSS)" -C $(TINYLOGIN_DIR) $(TARGET_DIR)/bin/tinylogin: $(TINYLOGIN_DIR)/tinylogin - make CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" -C $(TINYLOGIN_DIR) install + $(MAKE) CROSS="$(TARGET_CROSS)" PREFIX="$(TARGET_DIR)" -C $(TINYLOGIN_DIR) install tinylogin: uclibc $(TARGET_DIR)/bin/tinylogin tinylogin-clean: rm -f $(TARGET_DIR)/bin/tinylogin - -make -C $(TINYLOGIN_DIR) clean + -$(MAKE) -C $(TINYLOGIN_DIR) clean tinylogin-dirclean: rm -rf $(TINYLOGIN_DIR) diff --git a/make/user-mode-linux.mk b/make/user-mode-linux.mk index c7d22e9b89..04ee8df346 100644 --- a/make/user-mode-linux.mk +++ b/make/user-mode-linux.mk @@ -37,15 +37,15 @@ $(LINUX_DIR)/.set_arch: $(LINUX_DIR)/.patched $(LINUX_DIR)/.configured $(BUILD_DIR)/linux/.configured: $(LINUX_DIR)/.set_arch $(LINUX_KCONFIG) cp $(LINUX_KCONFIG) $(LINUX_DIR)/.config - make -C $(LINUX_DIR) oldconfig include/linux/version.h + $(MAKE) -C $(LINUX_DIR) oldconfig include/linux/version.h touch $(LINUX_DIR)/.configured $(LINUX_DIR)/.depend_done: $(LINUX_DIR)/.configured - make -C $(LINUX_DIR) dep + $(MAKE) -C $(LINUX_DIR) dep touch $(LINUX_DIR)/.depend_done $(LINUX_DIR)/linux: $(LINUX_DIR)/.depend_done - make -C $(LINUX_DIR) linux + $(MAKE) -C $(LINUX_DIR) linux $(LINUX_KERNEL): $(LINUX_DIR)/linux cp -fa $(LINUX_DIR)/linux $(LINUX_KERNEL) @@ -55,7 +55,7 @@ user-mode-linux: $(LINUX_KERNEL) # Renamed so it is not cleaned by default on a make clean user-mode-linux_clean: clean rm -f $(LINUX_KERNEL) - -make -C $(LINUX_DIR) clean + -$(MAKE) -C $(LINUX_DIR) clean user-mode-linux-dirclean: rm -rf $(LINUX_DIR) -- 2.30.2