Commit 01d77823 authored by Bradley C. Kuszmaul's avatar Bradley C. Kuszmaul

Make the top-level 'make check' run in parallel. Addresses #468.

git-svn-id: file:///svn/tokudb@2594 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8bfd0ff4
......@@ -7,8 +7,25 @@ SRCDIRS = newbrt src src/tests src/range_tree src/range_tree/tests src/lock_tree
build:
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k); done
check:
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k check); done
CHECKS = $(patsubst %,checkdir_%,$(SRCDIRS))
# This is the original check rule
# The stuff below allows "make -j2 -k check" to work
#check:
# for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k check); done
checkdir_%: build
cd $(patsubst checkdir_%,%,$@) ; $(MAKE) -k check
checkdir_src/%: build
cd $(patsubst checkdir_%,%,$@) ; $(MAKE) -k check
checkdir_cxx/%: build
cd $(patsubst checkdir_%,%,$@) ; $(MAKE) -k check
check: $(CHECKS)
foo:
echo $(MAKEFLAGS)
clean:
for d in $(SRCDIRS); do (cd $$d; $(MAKE) -k clean); done
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment