]> bbs.cooldavid.org Git - jme.git/blobdiff - Makefile
jme: Cleanup PM operations after using new PM API
[jme.git] / Makefile
index ab6097f037743bb77187c92ec382ac155b80c338..4285fbf4486f0aba793653e19c9bbbdba9e1f399 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,11 +36,21 @@ namespacecheck: modules
 
 install: modules
        install -m 644 $(MODNAME).ko $(MINSTDIR)
-       depmod $(KVER) $(MINSTDIR)/$(MODNAME).ko
+       depmod -a $(KVER)
 
 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)