PREFIX ?= $(HOME)/.local
PROFILE_DIR = $(HOME)/.config/nono/profiles
BIN_DIR = $(PREFIX)/bin

.PHONY: install uninstall validate test

install:
	@./scripts/install.sh

uninstall:
	rm -f $(PROFILE_DIR)/opencode-tinfoil.json
	rm -f $(BIN_DIR)/opencode
	@echo "Uninstalled."

validate:
	nono profile validate opencode-tinfoil

test:
	nono run --profile opencode-tinfoil --allow-cwd -- opencode --version