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