update handling of 'make'

This commit is contained in:
Eric Andersen 2003-01-17 08:09:39 +00:00
parent cd5135a432
commit a413a043f7
7 changed files with 17 additions and 18 deletions

View File

@ -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)

View File

@ -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

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)

View File

@ -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)