Alex Dunmow 4713787bbd initial: theme plugin corporate-modernist
Bootstrapped during the 2026-06-06 BlockNinja consolidation. Was previously
an unversioned directory inside ~/src/blockninja-themes/corporate-modernist.

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

27 lines
778 B
Makefile

# Corporate Modernist — theme plugin Makefile.
#
# Local-only targets. Per the wave-1 implementation policy this Makefile does
# NOT touch a live CMS instance; building remains a single-shot `make` invocation.
#
# make # build corporate-modernist.so via CGO go build -buildmode=plugin
# make templ # regenerate <name>_templ.go files
# make clean # remove the built .so
.PHONY: all templ clean
PLUGIN_NAME := corporate-modernist
# Default target: build the .so locally.
all: $(PLUGIN_NAME).so
$(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-produced Go files.
templ:
templ generate
# Remove built artifact.
clean:
rm -f $(PLUGIN_NAME).so