diff options
| author | Sam Ravnborg <sam@mars.ravnborg.org> | 2002-12-30 13:09:26 -0600 |
|---|---|---|
| committer | Kai Germaschewski <kai@tp1.ruhr-uni-bochum.de> | 2002-12-30 13:09:26 -0600 |
| commit | 69964a474a397a844e82d0b49e40f8f6d46eaefa (patch) | |
| tree | cd94da23c85ab2b713ab5cbc9904329e1ea1d335 /arch | |
| parent | 527efc055988aedfe42978197b6ab9764405e896 (diff) | |
kbuild: $(build) and $(clean) macros for make invocation
The former macro $(descend ...) hide for make the fact that a recursively make was
invoked. The replacement $(Q)$(MAKE) -f scripts/Makefile.build obj=dir was too verbose.
Introduced $(build) and $(clean) allowing the following syntax:
$(Q)$(MAKE) $(build)=arch/i386/boot target
and similar for clean.
Introduced $(build) and $(clean) in general, and for i386 architecture.
Diffstat (limited to 'arch')
| -rw-r--r-- | arch/i386/Makefile | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/arch/i386/Makefile b/arch/i386/Makefile index 6277bdd05469..706e02cd4b9e 100644 --- a/arch/i386/Makefile +++ b/arch/i386/Makefile @@ -83,7 +83,7 @@ drivers-$(CONFIG_OPROFILE) += arch/i386/oprofile/ CFLAGS += $(mflags-y) AFLAGS += $(mflags-y) -makeboot =$(Q)$(MAKE) -f scripts/Makefile.build obj=arch/i386/boot $(1) +boot := arch/i386/boot .PHONY: zImage bzImage compressed zlilo bzlilo zdisk bzdisk install \ clean archclean archmrproper @@ -94,20 +94,18 @@ BOOTIMAGE=arch/i386/boot/bzImage zImage zlilo zdisk: BOOTIMAGE=arch/i386/boot/zImage zImage bzImage: vmlinux - $(call makeboot,$(BOOTIMAGE)) + $(Q)$(MAKE) $(build)=$(boot) $(BOOTIMAGE) compressed: zImage zlilo bzlilo: vmlinux - $(call makeboot,BOOTIMAGE=$(BOOTIMAGE) zlilo) + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) zlilo zdisk bzdisk: vmlinux - $(call makeboot,BOOTIMAGE=$(BOOTIMAGE) zdisk) + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) zdisk install: vmlinux - $(call makeboot,BOOTIMAGE=$(BOOTIMAGE) install) + $(Q)$(MAKE) $(build)=$(boot) BOOTIMAGE=$(BOOTIMAGE) install archclean: - $(Q)$(MAKE) -f scripts/Makefile.clean obj=arch/i386/boot - -archmrproper: + $(Q)$(MAKE) $(clean)=arch/i386/boot |
