sidekick/Makefile
Guillaume Bury 5654414bfa Small fixes
2014-11-18 18:41:32 +01:00

52 lines
871 B
Makefile

# copyright (c) 2014, guillaume bury
LOG=build.log
COMP=ocamlbuild -log $(LOG) -use-ocamlfind -classic-display
FLAGS=
DIRS=-Is sat,smt,util,util/smtlib
DOC=msat.docdir/index.html
TEST=sat_solve.native bench_stats.native
NAME=msat
LIB=$(addprefix $(NAME), .cma .cmxa .cmxs)
all: lib test
lib:
$(COMP) $(FLAGS) $(DIRS) $(LIB)
doc:
$(COMP) $(FLAGS) $(DIRS) $(DOC)
build-test:
$(COMP) $(FLAGS) $(DIRS) $(TEST)
test: build-test
./tests/run
bench: build-test
cd bench && $(MAKE)
stats:
@./bench_stats.native
log:
cat _build/$(LOG) || true
clean:
$(COMP) -clean
TO_INSTALL=META $(addprefix _build/,$(LIB) $(NAME).a $(NAME).cmi)
install: all
ocamlfind install msat $(TO_INSTALL)
uninstall:
ocamlfind remove msat
reinstall: all
ocamlfind remove msat || true
ocamlfind install msat $(TO_INSTALL)
.PHONY: clean doc all bench install uninstall reinstall