infer_clone/infer/models/cpp/Makefile

25 lines
534 B

SHELL := /bin/bash
CWD = $(shell pwd)
BINDIR = $(CWD)/../../bin
LIBDIR = $(CWD)/../../lib
LIB_SPECS = $(LIBDIR)/specs
CPP_MODELS_FILE = $(LIB_SPECS)/cpp_models
INFER = INFER_ANALYZE_MODELS=1 $(BINDIR)/infer
default: run_infer
.PHONY: run_infer install clean
run_infer: clean
$(INFER) -o $(CWD)/out --models_mode --no_failures_allowed -- make -C src
install: run_infer
cp out/specs/*.specs $(LIB_SPECS)
touch $(CPP_MODELS_FILE)
rm -rf out
clean:
if [ -a $(CPP_MODELS_FILE) ];then rm $(CPP_MODELS_FILE);fi
make -C src clean