themes-earthen/Makefile
Alex Dunmow 49401f1b41 initial: theme plugin earthen
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/earthen.

Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
2026-06-06 14:11:27 +08:00

30 lines
758 B
Makefile

# Earthen — build helpers (.so plugin workflow)
#
# Local build only. This Makefile deliberately does NOT include rebuild/deploy
# targets to avoid touching the live CMS container during agent runs.
.PHONY: all clean templ help
PLUGIN_NAME := earthen
# Default target: build the .so locally.
all: $(PLUGIN_NAME).so
# Local plugin build.
$(PLUGIN_NAME).so: $(wildcard *.go) plugin.mod go.mod
CGO_ENABLED=1 go build -buildmode=plugin -ldflags="-s -w" -o $(PLUGIN_NAME).so .
# Regenerate templ Go files.
templ:
templ generate
# Remove built artefacts.
clean:
rm -f $(PLUGIN_NAME).so
help:
@echo "Targets:"
@echo " all Build $(PLUGIN_NAME).so locally (default)"
@echo " templ Regenerate templ Go files"
@echo " clean Remove built .so"