ocaml-maxflow-project/Makefile
2023-11-13 20:47:46 +01:00

29 lines
495 B
Makefile

.PHONY: all build format edit demo clean
src?=0
dst?=5
graph?=graph1.txt
all: build
build:
@echo "\n 🚨 COMPILING 🚨 \n"
dune build src/ftest.exe
ls src/*.exe > /dev/null && ln -fs src/*.exe .
format:
ocp-indent --inplace src/*
edit:
code . -n
demo: build
@echo "\n ⚡ EXECUTING ⚡\n"
./ftest.exe graphs/${graph} $(src) $(dst) outfile
@echo "\n 🥁 RESULT (content of outfile) 🥁\n"
@cat outfile
clean:
find -L . -name "*~" -delete
rm -f *.exe
dune clean