CS153/hw4/Makefile
jmug b24a264f7e Update hw4 to a newer version.
Signed-off-by: jmug <u.g.a.mariano@gmail.com>
2025-01-24 21:01:32 -08:00

27 lines
394 B
Makefile

SUBMIT := $(shell cat submit_zip_contents.txt)
HWNAME := hw4
TIMESTAMP := $(shell /bin/date "+%Y-%m-%d-%H:%M:%S")
ZIPNAME := $(HWNAME)-submit-$(TIMESTAMP).zip
.PHONY: all oatc test clean zip
all: oatc
oatc:
dune build
@cp bin/main.exe oatc
test: oatc
./oatc --test
utop:
dune utop
zip: $(SUBMIT)
zip '$(ZIPNAME)' $(SUBMIT)
clean:
dune clean
rm -rf oatc ocamlbin bin/main.exe
#