X-Git-Url: https://bbs.cooldavid.org/git/?p=jme.git;a=blobdiff_plain;f=Makefile;h=2b55d4881d2f954d7a447c24d6447df086c4200d;hp=ab6097f037743bb77187c92ec382ac155b80c338;hb=349f9de1da3fab033d04a8a8c541a8e001167d71;hpb=b49d52a1dca59ae5a7258b65c7dcd66646d6c887 diff --git a/Makefile b/Makefile index ab6097f..2b55d48 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,16 @@ install: modules patch: @/usr/bin/diff -uar -X dontdiff ../../trunc ./ > bc.patch || echo > /dev/null +buildtest: + SRCDIRS=`find ~/linux-src -mindepth 1 -maxdepth 1 -type d -name 'linux-*' | sort -r -n`; \ + for d in $${SRCDIRS}; do \ + $(MAKE) clean && $(MAKE) -C . KSRC=$${d} modules; \ + if [ $$? != 0 ]; then \ + exit $$?; \ + fi; \ + done + $(MAKE) clean + clean: @rm -rf $(MODNAME).ko $(TEMPFILES)