ocaml-maxflow-project/Makefile
2020-11-16 09:49:18 +01:00

25 lines
381 B
Makefile

src?=1
dest?=2
build:
@echo "\n==== COMPILING ====\n"
ocamlbuild ftest.native
format:
ocp-indent --inplace src/*
edit:
code . -n
demo: build
@echo "\n==== EXECUTING ====\n"
./ftest.native graphs/graph1 $(src) $(dest) outfile
@echo "\n==== RESULT ==== (content of outfile) \n"
@cat outfile
clean:
-rm -rf _build/
-rm ftest.native
svg:
dot -Tsvg outfile > graph.svg