Commit 566d68bf authored by Yoni Fogel's avatar Yoni Fogel

Addresses #1298

make local (at top level) skips tests

git-svn-id: file:///svn/toku/tokudb@9227 c7de825b-a66e-492c-adef-691d508d4ae1
parent 8eb17bcc
......@@ -16,10 +16,21 @@ db-benchmark-test.dir: src.dir
db-benchmark-test-cxx.dir: cxx.dir
utils.dir: src.dir
newbrt.cleandir: $(OS_CHOICE).cleandir
src.cleandir: newbrt.cleandir
cxx.cleandir: src.cleandir
db-benchmark-test.cleandir: src.cleandir
db-benchmark-test-cxx.cleandir: cxx.cleandir
utils.cleandir: src.cleandir
%.dir:
cd $(patsubst %.dir, %, $@) && $(MAKE) build
cd $* && $(MAKE) build
%.localdir:
cd $* && $(MAKE) local
build: $(patsubst %,%.dir, $(BUILDDIRS))
local: $(patsubst %,%.localdir, $(BUILDDIRS))
CHECKS = $(patsubst %,%.checkdir,$(filter-out linux, $(SRCDIRS)))
......
......@@ -28,7 +28,10 @@ endif
LIBNAME = libtokudb_cxx
default: install build
default: local
local: install build;
build: $(LIBNAME).a
if ! diff $(LIBNAME).a ../lib/$(LIBNAME).a >/dev/null 2>&1; then cp $< ../lib/; fi
cd tests; $(MAKE) build
......
......@@ -46,7 +46,8 @@ QUIET =
endif
default: build
build: $(TARGETS)
build: local;
local: $(TARGETS);
check: check-default
......
......@@ -40,7 +40,10 @@ SCANSCAN_TDB = scanscan-tokudb$(BINSUF)
TARGETS = $(TARGET_BDB) $(SCANSCAN_BDB) $(TARGET_TDB) $(SCANSCAN_TDB)
default: build
build: $(TARGETS)
build: local;
local: $(TARGETS);
build.bdb: $(TARGET_BDB) $(SCANSCAN_BDB)
build.tdb: $(TARGET_TDB) $(SCANSCAN_TDB)
......
......@@ -21,4 +21,5 @@ clean:
rm -rf $(TARGET) $(LIBPORTABILITY)
# For build, do nothing
build:
local build:;
......@@ -7,7 +7,7 @@ SECTIONS = intro
SECTIONS_TEXI = $(patsubst %,%.texi,$(SECTIONS))
default: $(MANPAGES_3) tokudb.dvi;
build: default;
local build: default;
tokudb.dvi: tokudb.texi $(MANPAGES_TEXI) $(SECTIONS_TEXI)
texi2dvi4a2ps tokudb.texi
......
......@@ -31,9 +31,11 @@ BINS_O = $(patsubst %,%.$(OEXT),$(BINS_RAW))
.PHONY: build default bins libs
build default: bins libs $(TEST_NEWBRT)
build default: local
cd tests;$(MAKE) build
local: bins libs $(TEST_NEWBRT);
BRT_SOURCES = \
block_allocator \
bread \
......
......@@ -49,7 +49,8 @@ INSTALL_LIBRARIES= $(patsubst %,%.install,$(LIBRARIES))
#Half Build Half Install???
build: local build_tests ;
local: buildlocktrees libs install_libs ;
.PHONY: install
local install: buildlocktrees libs install_libs ;
build_tests: | local
cd tests && $(MAKE) build
......@@ -62,8 +63,6 @@ install_libs: $(INSTALL_LIBRARIES)
%.install: %
if ! diff $* ../lib/$* > /dev/null 2>&1; then cp $* ../lib/; fi
.PHONY: install
install: libs install_libs ;
.PHONY: local libs buildlocktrees
libs: $(LIBRARIES) ;
......
......@@ -67,7 +67,8 @@ endif
.PHONY: all clean test test_gen test_gen_hex test_load test_dump
build all: $(UTILS) $(BDB_UTILS) $(STATIC_UTILS)
build all: local
local: $(UTILS) $(BDB_UTILS) $(STATIC_UTILS);
coverage: $(UTILS)
......
......@@ -22,3 +22,6 @@ $(TARGET): $(OBJS)
clean:
rm -rf $(TARGET) $(LIBPORTABILITY)
# For build, do nothing
local build:;
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