You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

25 lines
528 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 = 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