From 9f0dd22294568eb7dd5489812f80bde72a01ea9b Mon Sep 17 00:00:00 2001 From: maurice barnum Date: Thu, 13 Aug 2015 10:13:43 -0700 Subject: [PATCH] Add a 'tools' target. My use case is to build the rocksdb static library and tools, and ideally I'd like to not spend time building the shared library and other targets that I won't use. --- Makefile | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 2a956766a..5d7ad22e1 100644 --- a/Makefile +++ b/Makefile @@ -377,20 +377,23 @@ endif # PLATFORM_SHARED_EXT .PHONY: blackbox_crash_test check clean coverage crash_test ldb_tests package \ release tags valgrind_check whitebox_crash_test format static_lib shared_lib all \ dbg rocksdbjavastatic rocksdbjava install install-static install-shared uninstall \ - analyze + analyze tools -all: $(LIBRARY) $(BENCHMARKS) $(TOOLS) $(TESTS) + +all: $(LIBRARY) $(BENCHMARKS) tools $(TESTS) static_lib: $(LIBRARY) shared_lib: $(SHARED) -dbg: $(LIBRARY) $(BENCHMARKS) $(TOOLS) $(TESTS) +tools: $(TOOLS) + +dbg: $(LIBRARY) $(BENCHMARKS) tools $(TESTS) # creates static library and programs release: $(MAKE) clean - OPT="-DNDEBUG -O2" $(MAKE) static_lib $(TOOLS) db_bench + OPT="-DNDEBUG -O2" $(MAKE) static_lib tools db_bench coverage: $(MAKE) clean