30 lines
455 B
Makefile
30 lines
455 B
Makefile
SUBMIT := $(shell cat submit_zip_contents.txt)
|
|
HWNAME := hw2
|
|
TIMESTAMP := $(shell /bin/date "+%Y-%m-%d-%H:%M:%S")
|
|
ZIPNAME := $(HWNAME)-submit-$(TIMESTAMP).zip
|
|
|
|
.PHONY: all oatc test clean zip
|
|
|
|
all: oatc
|
|
|
|
dev:
|
|
dune build --watch --terminal-persistence=clear-on-rebuild
|
|
|
|
oatc:
|
|
dune build
|
|
@cp bin/main.exe oatc
|
|
|
|
test: oatc
|
|
./oatc --test
|
|
|
|
utop:
|
|
utop
|
|
|
|
zip: $(SUBMIT)
|
|
zip '$(ZIPNAME)' $(SUBMIT)
|
|
|
|
clean:
|
|
dune clean
|
|
rm -rf oatc ocamlbin bin/main.exe
|
|
|
|
#
|