add quick-test target

Reviewed By: jberdine

Differential Revision: D3436716

fbshipit-source-id: 8bfb530
master
Jules Villard 9 years ago committed by Facebook Github Bot 0
parent 3a47b4064b
commit a7fdb09600

@ -27,17 +27,18 @@ $(INFER_BIN_RELPATH) $(INFERTRACEBUGS_BIN_RELPATH):
cd $(@D) && \
$(LN_S) ../lib/python/$(@F) $(@F))
infer: $(INFER_BIN_RELPATH)
src_build:
$(MAKE) -C $(SRC_DIR) infer
ifeq ($(BUILD_C_ANALYZERS),yes)
src_build: clang_plugin
endif
infer: $(INFER_BIN_RELPATH) src_build
ifeq ($(BUILD_JAVA_ANALYZERS),yes)
$(MAKE) -C $(ANNOTATIONS_DIR)
endif
$(MAKE) -C $(MODELS_DIR) all
ifeq ($(BUILD_C_ANALYZERS),yes)
infer: clang_plugin
endif
clang_setup:
export CC="$(CC)" CFLAGS="$(CFLAGS)"; \
export CXX="$(CXX)" CXXFLAGS="$(CXXFLAGS)"; \
@ -77,8 +78,8 @@ ifeq ($(IS_FACEBOOK_TREE),yes)
test_build: test_oss_build
endif
ocaml_unit_test: infer
$(INFERUNIT_BIN)
ocaml_unit_test: test_this_build
$(TEST_BUILD_DIR)/unit/inferunit.byte
buck_test: infer
NO_BUCKD=1 buck clean
@ -116,6 +117,8 @@ test: test_build ocaml_unit_test buck_test inferTraceBugs_test
test_xml: test_build ocaml_unit_test buck_test_xml inferTraceBugs_test
$(MAKE) -C $(SRC_DIR) mod_dep.dot
quick-test: test_this_build ocaml_unit_test
uninstall:
$(REMOVE_DIR) $(DESTDIR)$(libdir)/infer/
$(REMOVE) $(DESTDIR)$(bindir)/inferTraceBugs
@ -245,5 +248,5 @@ conf-clean: clean
$(REMOVE_DIR) infer/models/objc/out/
.PHONY: all buck_test buck_test_xml clean clang_plugin clang_setup infer inferTraceBugs
.PHONY: inferTraceBugs_test ocaml_unit_test check_missing_mli test test_xml test_build install
.PHONY: uninstall
.PHONY: inferTraceBugs_test install ocaml_unit_test check_missing_mli src_build test test_xml
.PHONY: test_build uninstall

@ -70,10 +70,16 @@ FCP_CLANG_OCAML_DIR = $(FCP_DIR)/clang-ocaml
ANNOTATIONS_DIR = $(INFER_DIR)/annotations
BIN_DIR = $(INFER_DIR)/bin
BUILD_DIR = $(INFER_DIR)/_build
ETC_DIR = $(INFER_DIR)/etc
LIB_DIR = $(INFER_DIR)/lib
MODELS_DIR = $(INFER_DIR)/models
SRC_DIR = $(INFER_DIR)/src
ANNOT_DIR = $(SRC_DIR)/_build
INFER_BUILD_DIR = $(BUILD_DIR)/infer
LLVM_BUILD_DIR = $(BUILD_DIR)/llvm
TEST_BUILD_DIR = $(BUILD_DIR)/test
JAVA_LIB_DIR = $(LIB_DIR)/java
SPECS_LIB_DIR = $(LIB_DIR)/specs

@ -11,7 +11,6 @@ include $(ROOT_DIR)/Makefile.config
#### Global declarations ####
INFER_BUILD_DIR = $(BUILD_DIR)/infer
TEST_BUILD_DIR = $(BUILD_DIR)/test
LLVM_BUILD_DIR = $(BUILD_DIR)/llvm
ANNOT_DIR = $(SRC_DIR)/_build
ETC_DIR = $(INFER_DIR)/etc

Loading…
Cancel
Save