2023-11-13 22:56:20 -08:00
|
|
|
SAVES := imperial-save
|
|
|
|
SAVES += skygrid-save
|
|
|
|
SAVES += witchcraft-save
|
|
|
|
|
|
|
|
all: $(SAVES)
|
|
|
|
|
2023-12-11 00:30:02 -08:00
|
|
|
imperial-save: compile
|
2023-11-13 22:56:20 -08:00
|
|
|
mkdir imperial-save
|
|
|
|
./spatial-db load worldsave "saves/Imperialcity v14.1/region" --output "imperial-save"
|
|
|
|
|
2023-12-11 00:30:02 -08:00
|
|
|
skygrid-save: compile
|
2023-11-13 22:56:20 -08:00
|
|
|
mkdir skygrid-save
|
|
|
|
./spatial-db load worldsave "saves/SkyGrid/region" --output "skygrid-save"
|
|
|
|
|
2023-12-11 00:30:02 -08:00
|
|
|
witchcraft-save: compile
|
2023-11-13 22:56:20 -08:00
|
|
|
mkdir witchcraft-save
|
|
|
|
./spatial-db load worldsave "saves/Witchcraft/region" --output "witchcraft-save"
|
|
|
|
|
2023-12-05 15:27:40 -08:00
|
|
|
.PHONY: compile
|
|
|
|
compile:
|
|
|
|
CC=clang go build .
|
|
|
|
|
2023-12-05 13:12:31 -08:00
|
|
|
.PHONY: bench
|
2023-12-05 15:27:40 -08:00
|
|
|
bench: compile
|
2023-12-10 21:55:22 -08:00
|
|
|
CC=clang GOEXPERIMENT=loopvar go test -bench .
|
2023-12-05 13:12:31 -08:00
|
|
|
|
2023-11-13 22:56:20 -08:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -r $(SAVES)
|