# 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 _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