From 349f9de1da3fab033d04a8a8c541a8e001167d71 Mon Sep 17 00:00:00 2001 From: Guo-Fu Tseng Date: Tue, 28 Jun 2011 15:30:32 +0800 Subject: [PATCH 1/1] cleanup before and after buildtest --- Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index e292fb3..2b55d48 100644 --- a/Makefile +++ b/Makefile @@ -44,11 +44,12 @@ patch: buildtest: SRCDIRS=`find ~/linux-src -mindepth 1 -maxdepth 1 -type d -name 'linux-*' | sort -r -n`; \ for d in $${SRCDIRS}; do \ - $(MAKE) -C . KSRC=$${d} modules; \ + $(MAKE) clean && $(MAKE) -C . KSRC=$${d} modules; \ if [ $$? != 0 ]; then \ exit $$?; \ fi; \ done + $(MAKE) clean clean: @rm -rf $(MODNAME).ko $(TEMPFILES) -- 2.39.3