]> bbs.cooldavid.org Git - jme.git/blobdiff - Makefile
jme: PHY configuration for compatible issue
[jme.git] / Makefile
index e292fb316e2e4d3b0937dd97c2b6241ce7a4eb62..4285fbf4486f0aba793653e19c9bbbdba9e1f399 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -36,7 +36,7 @@ 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
@@ -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)