]> bbs.cooldavid.org Git - jme.git/commitdiff
cleanup before and after buildtest
authorGuo-Fu Tseng <cooldavid@cooldavid.org>
Tue, 28 Jun 2011 07:30:32 +0000 (15:30 +0800)
committerGuo-Fu Tseng <cooldavid@cooldavid.org>
Tue, 28 Jun 2011 11:20:51 +0000 (19:20 +0800)
Makefile

index e292fb316e2e4d3b0937dd97c2b6241ce7a4eb62..2b55d4881d2f954d7a447c24d6447df086c4200d 100644 (file)
--- 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 \
 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
                if [ $$? != 0 ]; then \
                        exit $$?; \
                fi; \
        done
+       $(MAKE) clean
 
 clean:
        @rm -rf $(MODNAME).ko $(TEMPFILES)
 
 clean:
        @rm -rf $(MODNAME).ko $(TEMPFILES)