aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorJeff Dike <jdike@addtoit.com>2005-01-11 03:17:01 -0800
committerLinus Torvalds <torvalds@ppc970.osdl.org>2005-01-11 03:17:01 -0800
commit8d67448209a64a9faa82ca5410a91cfce7af3e96 (patch)
tree1411e51975c3c19a2be64766f16a578a10b92cd4 /arch
parent04a93f85d0c772d7cc0758603ab2abf2a17d9196 (diff)
downloadhistory-8d67448209a64a9faa82ca5410a91cfce7af3e96.tar.gz
[PATCH] UML: Fix make clean
From: Chris Wright - make clean gets rid of more stuff Signed-off-by: Jeff Dike <jdike@addtoit.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'arch')
-rw-r--r--arch/um/Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/arch/um/Makefile b/arch/um/Makefile
index b00c1a4adb24cf..a21b5d1da07fa9 100644
--- a/arch/um/Makefile
+++ b/arch/um/Makefile
@@ -14,11 +14,15 @@ filechk_gen_header = $<
core-y += $(ARCH_DIR)/kernel/ \
$(ARCH_DIR)/drivers/
+clean-dirs := sys-$(SUBARCH)
+
# Have to precede the include because the included Makefiles reference them.
SYMLINK_HEADERS = archparam.h system.h sigcontext.h processor.h ptrace.h \
arch-signal.h module.h vm-flags.h
SYMLINK_HEADERS := $(foreach header,$(SYMLINK_HEADERS),include/asm-um/$(header))
+CLEAN_FILES += $(ARCH_SYMLINKS)
+
ARCH_SYMLINKS = include/asm-um/arch $(ARCH_DIR)/include/sysdep $(ARCH_DIR)/os \
$(SYMLINK_HEADERS) $(ARCH_DIR)/include/uml-config.h
@@ -81,6 +85,9 @@ endef
$(shell cd $(ARCH_DIR) && ln -sf Kconfig_$(SUBARCH) Kconfig_arch)
+CLEAN_FILES += $(TOPDIR)/$(ARCH_DIR)/include/skas_ptregs.h \
+ $(TOPDIR)/$(ARCH_DIR)/os
+
prepare: $(ARCH_SYMLINKS) $(SYS_HEADERS) $(GEN_HEADERS) \
$(ARCH_DIR)/kernel/vmlinux.lds.S
@@ -141,7 +148,8 @@ USER_CFLAGS += -D_GNU_SOURCE
#When cleaning we don't include .config, so we don't include
#TT or skas makefiles and don't clean skas_ptregs.h.
CLEAN_FILES += linux x.i gmon.out $(ARCH_DIR)/include/uml-config.h \
- $(GEN_HEADERS) $(ARCH_DIR)/include/skas_ptregs.h
+ $(GEN_HEADERS) $(ARCH_DIR)/include/skas_ptregs.h \
+ $(ARCH_DIR)/util/mk_constants $(ARCH_DIR)/util/mk_task
MRPROPER_FILES += $(SYMLINK_HEADERS) $(ARCH_SYMLINKS) \
$(addprefix $(ARCH_DIR)/kernel/,$(KERN_SYMLINKS)) $(ARCH_DIR)/os