| 1 | ## Copyright (C) 2022 Matthew Fluet |
| 2 | # Copyright (C) 1999-2006 Henry Cejtin, Matthew Fluet, Suresh |
| 3 | # Jagannathan, and Stephen Weeks. |
| 4 | # Copyright (C) 1997-2000 NEC Research Institute. |
| 5 | # |
| 6 | # MLton is released under a HPND-style license. |
| 7 | # See the file MLton-LICENSE for details. |
| 8 | ## |
| 9 | |
| 10 | ROOT := ../../.. |
| 11 | include $(ROOT)/Makefile.config |
| 12 | |
| 13 | ###################################################################### |
| 14 | |
| 15 | PATH := $(BIN):$(shell echo $$PATH) |
| 16 | mlton := mlton |
| 17 | |
| 18 | all: test |
| 19 | |
| 20 | .PHONY: test |
| 21 | test: world |
| 22 | ./save-world @MLton load-world world -- |
| 23 | |
| 24 | world: save-world |
| 25 | ./save-world |
| 26 | |
| 27 | save-world: save-world.sml |
| 28 | $(mlton) save-world.sml |
| 29 | |
| 30 | |
| 31 | $(eval $(MK_COMMON_GOALS)) |