MPL=mpl

main: *.sml *.mlb
	$(MPL) -default-type int64 -default-type word64 main.mlb

no-cm: phony
	find . -depth -name *.cm -type d -exec rm -rf {} \;

lib:
	smlpkg sync

lec01.tgz: no-cm lib
	tar czf lec01.tgz -C .. lec01/lib lec01/lib-local lec01/scratch.sml lec01/Ex.sml lec01/main.sml lec01/main.mlb lec01/Makefile lec01/download_words_dataset.sh lec01/sml.pkg

.PHONY: phony
