aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile36
1 files changed, 16 insertions, 20 deletions
diff --git a/Makefile b/Makefile
index 3e438055a92c..519db43052a0 100644
--- a/Makefile
+++ b/Makefile
@@ -204,6 +204,9 @@ ifeq ($(ARCH),x86_64)
204endif 204endif
205 205
206# Additional ARCH settings for sparc 206# Additional ARCH settings for sparc
207ifeq ($(ARCH),sparc32)
208 SRCARCH := sparc
209endif
207ifeq ($(ARCH),sparc64) 210ifeq ($(ARCH),sparc64)
208 SRCARCH := sparc 211 SRCARCH := sparc
209endif 212endif
@@ -1137,21 +1140,13 @@ MRPROPER_FILES += .config .config.old .version .old_version \
1137# 1140#
1138clean: rm-dirs := $(CLEAN_DIRS) 1141clean: rm-dirs := $(CLEAN_DIRS)
1139clean: rm-files := $(CLEAN_FILES) 1142clean: rm-files := $(CLEAN_FILES)
1140clean-dirs := $(addprefix _clean_,$(srctree) $(vmlinux-alldirs) Documentation) 1143clean-dirs := $(addprefix _clean_, . $(vmlinux-alldirs) Documentation)
1141 1144
1142PHONY += $(clean-dirs) clean archclean 1145PHONY += $(clean-dirs) clean archclean
1143$(clean-dirs): 1146$(clean-dirs):
1144 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@) 1147 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
1145 1148
1146clean: archclean $(clean-dirs) 1149clean: archclean
1147 $(call cmd,rmdirs)
1148 $(call cmd,rmfiles)
1149 @find . $(RCS_FIND_IGNORE) \
1150 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
1151 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
1152 -o -name '*.symtypes' -o -name 'modules.order' \
1153 -o -name modules.builtin -o -name '.tmp_*.o.*' \
1154 -o -name '*.gcno' \) -type f -print | xargs rm -f
1155 1150
1156# mrproper - Delete all generated files, including .config 1151# mrproper - Delete all generated files, including .config
1157# 1152#
@@ -1352,16 +1347,7 @@ $(clean-dirs):
1352 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@) 1347 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
1353 1348
1354clean: rm-dirs := $(MODVERDIR) 1349clean: rm-dirs := $(MODVERDIR)
1355clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers \ 1350clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers
1356 $(KBUILD_EXTMOD)/modules.order \
1357 $(KBUILD_EXTMOD)/modules.builtin
1358clean: $(clean-dirs)
1359 $(call cmd,rmdirs)
1360 $(call cmd,rmfiles)
1361 @find $(KBUILD_EXTMOD) $(RCS_FIND_IGNORE) \
1362 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
1363 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
1364 -o -name '*.gcno' \) -type f -print | xargs rm -f
1365 1351
1366help: 1352help:
1367 @echo ' Building external modules.' 1353 @echo ' Building external modules.'
@@ -1378,6 +1364,16 @@ prepare: ;
1378scripts: ; 1364scripts: ;
1379endif # KBUILD_EXTMOD 1365endif # KBUILD_EXTMOD
1380 1366
1367clean: $(clean-dirs)
1368 $(call cmd,rmdirs)
1369 $(call cmd,rmfiles)
1370 @find $(or $(KBUILD_EXTMOD), .) $(RCS_FIND_IGNORE) \
1371 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
1372 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \
1373 -o -name '*.symtypes' -o -name 'modules.order' \
1374 -o -name modules.builtin -o -name '.tmp_*.o.*' \
1375 -o -name '*.gcno' \) -type f -print | xargs rm -f
1376
1381# Generate tags for editors 1377# Generate tags for editors
1382# --------------------------------------------------------------------------- 1378# ---------------------------------------------------------------------------
1383quiet_cmd_tags = GEN $@ 1379quiet_cmd_tags = GEN $@