# retoor <retoor@molodetz.nl>

NIMBLE_BIN := $(HOME)/.nimble/bin
NIM        := $(NIMBLE_BIN)/nim
NIMBLE     := $(NIMBLE_BIN)/nimble
BIN        := sneknim

export PATH := $(NIMBLE_BIN):$(PATH)

.PHONY: all build run clean deps

all: build

deps:
	$(NIMBLE) install -d -y

build: deps
	$(NIMBLE) build

run: build
	./$(BIN) nim.json

clean:
	rm -f $(BIN)
	rm -rf src/nimcache
