# overrides to s9pk.mk must precede the include statement
include s9pk.mk

# ── Deploy ─────────────────────────────────────────────────────────────────
# `make deploy` — interactively bumps the version, builds the x86 .s9pk,
# uploads it to FileBrowser, registers with the Start9 registry, and triggers
# a registry re-index. Reads credentials from .deploy.env — copy
# .deploy.env.example to .deploy.env and fill in your values.
.PHONY: deploy redeploy bump
deploy:
	@bash bin/bump-version.sh
	@$(MAKE) --no-print-directory x86
	@bash bin/deploy.sh

# `make redeploy` — push the existing .s9pk as-is. No version bump, no build.
redeploy:
	@bash bin/deploy.sh

# `make bump` — interactively bump the version (create a new version file and
# wire it into the version graph). No build, no deploy.
bump:
	@bash bin/bump-version.sh
