X-Git-Url: http://bbs.cooldavid.org/git/?a=blobdiff_plain;f=Makefile;h=b138d85432cbb6a1aff1dc59e83094032f6b18e0;hb=ede09a6571c3c7b13be6d8ac319bd379e7596748;hp=e292fb316e2e4d3b0937dd97c2b6241ce7a4eb62;hpb=cbbd209a9a6be484832c6af83b867f3dddd054df;p=jme.git diff --git a/Makefile b/Makefile index e292fb3..b138d85 100644 --- a/Makefile +++ b/Makefile @@ -36,19 +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`; \ + SRCDIRS="$${SRCDIRS} `find ~/linux-src/centos -mindepth 2 -maxdepth 2 -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)