aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2007-07-31 19:45:34 -0400
committerSam Ravnborg <sam@neptun.(none)>2007-10-12 15:15:30 -0400
commitc34114f4acbc89a217148ebe166b2a68f973a7b9 (patch)
treec208431adb4aae27fdc7ae4128ad07ad2403dec7
parenta83710e584b8ef46fc44472ec6f0c342003416e8 (diff)
kbuild: clean Modules.symvers in external module dirs
At the moment, running `make clean` in an external module directory does a nice job of cleaning up with one exception: it leaves behind Modules.symvers. Attached patch adds this file to the clean list for external modules. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Sam Ravnborg <sam@ravnborg.org>
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 1274084c9090..2738966e1d37 100644
--- a/Makefile
+++ b/Makefile
@@ -1255,8 +1255,10 @@ $(clean-dirs):
1255 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@) 1255 $(Q)$(MAKE) $(clean)=$(patsubst _clean_%,%,$@)
1256 1256
1257clean: rm-dirs := $(MODVERDIR) 1257clean: rm-dirs := $(MODVERDIR)
1258clean: rm-files := $(KBUILD_EXTMOD)/Module.symvers
1258clean: $(clean-dirs) 1259clean: $(clean-dirs)
1259 $(call cmd,rmdirs) 1260 $(call cmd,rmdirs)
1261 $(call cmd,rmfiles)
1260 @find $(KBUILD_EXTMOD) $(RCS_FIND_IGNORE) \ 1262 @find $(KBUILD_EXTMOD) $(RCS_FIND_IGNORE) \
1261 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \ 1263 \( -name '*.[oas]' -o -name '*.ko' -o -name '.*.cmd' \
1262 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \ 1264 -o -name '.*.d' -o -name '.*.tmp' -o -name '*.mod.c' \) \