X-Git-Url: https://bbs.cooldavid.org/git/?p=jme.git;a=blobdiff_plain;f=Makefile;fp=Makefile;h=e292fb316e2e4d3b0937dd97c2b6241ce7a4eb62;hp=ab6097f037743bb77187c92ec382ac155b80c338;hb=28d4b5c618d73c64ddd6227a8e21b3241064817e;hpb=b49d52a1dca59ae5a7258b65c7dcd66646d6c887 diff --git a/Makefile b/Makefile index ab6097f..e292fb3 100644 --- a/Makefile +++ b/Makefile @@ -41,6 +41,15 @@ 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) -C . KSRC=$${d} modules; \ + if [ $$? != 0 ]; then \ + exit $$?; \ + fi; \ + done + clean: @rm -rf $(MODNAME).ko $(TEMPFILES)