adventofcode/2024/day2/Makefile
2024-12-04 22:32:49 +01:00

19 lines
224 B
Makefile

CC = ocamlopt
RM = rm -rf
NAME = main
EXE = a.out
LIB =
all: run
compilation:
$(CC) -o $(EXE) $(LIB) $(NAME).ml
run: compilation
./$(EXE)
EXTS = cmi cmx o
clean:
$(RM) $(EXE) $(foreach ext,$(EXTS),$(NAME).$(ext))