12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- BOLD=\e[1m
- BLUE=\e[34m
- GREEN=\e[32m
- NORMAL=\e[0m
-
- COMPILING="\n$(BOLD)$(BLUE)==== COMPILING ====$(NORMAL)\n"
- EXECUTING="\n$(BOLD)$(GREEN)==== EXECUTING ====$(NORMAL)\n"
- BUILDING_SVG="\n$(BOLD)$(GREEN)==== BUILDING SVG ====$(NORMAL)\n"
- RESULT="\n$(BOLD)$(GREEN)==== RESULT ====$(NORMAL)\n"
-
- build:
- @echo $(COMPILING)
- ocamlbuild ftest.native
-
- format:
- ocp-indent --inplace src/*
-
- test: build
- @echo $(EXECUTING)
- mkdir -p test
- ./ftest.native graphs/graph1
- @echo $(BUILDING_SVG)
- @echo "graph_init..."
- @dot -Tsvg test/graph_init > test/graph_init.svg
- @echo "graph_apply..."
- @dot -Tsvg test/graph_apply > test/graph_apply.svg
- @echo "graph_res..."
- @dot -Tsvg test/graph_res > test/graph_res.svg
- @echo ""
-
- demo: build
- @echo $(EXECUTING)
- mkdir -p run
- ./ftest.native graphs/test2 0 5 run/solution
- @echo $(BUILDING_SVG)
- @echo "solution..."
- @dot -Tsvg run/solution > run/solution.svg
- @echo ""
-
-
- clean:
- -rm -rf _build/
- -rm ftest.native
- -rm circulationtest.native
- -rm -rf run/
- -rm -rf test/
-
- build_circulation:
- @echo $(COMPILING)
- ocamlbuild circulationtest.native
-
- demo_circulation: build_circulation
- @echo $(EXECUTING)
- ./circulationtest.native circulation_input_graphs/test1 run/circulation_solution
- @echo $(BUILDING_SVG)
- @echo "circulation_solution..."
- @dot -Tsvg run/circulation_solution > run/circulation_solution.svg
- @echo ""
|