VERSION := $(shell git describe --tags --always --dirty 2>/dev/null || echo dev) GO_ENV := CGO_ENABLED=0 .PHONY: build install clean help help: @echo "HarborForge.PlexumPlugin build targets:" @echo " build - compile binary + bundle manifest into dist/" @echo " install - copy binary + manifest into ~/.plexum/plugins/harbor-forge/" @echo " clean - rm -rf dist/" build: mkdir -p dist $(GO_ENV) go build -ldflags="-X main.Version=$(VERSION)" \ -o dist/plexum-harborforge-plugin ./cmd/plexum-harborforge-plugin cp manifest.json dist/manifest.json @echo "Built to dist/ (version=$(VERSION))" install: build mkdir -p ~/.plexum/plugins/harbor-forge cp dist/plexum-harborforge-plugin ~/.plexum/plugins/harbor-forge/ cp dist/manifest.json ~/.plexum/plugins/harbor-forge/ @echo "Installed to ~/.plexum/plugins/harbor-forge/" @echo "Add to ~/.plexum/plexum.json .plugins.allow: 'harbor-forge'" @echo "Config goes at ~/.plexum/plugins/harbor-forge/config.json (see README)" clean: rm -rf dist/