From 4138874cb40b3e9ec3c217d30707e02253473361 Mon Sep 17 00:00:00 2001 From: Claude Date: Wed, 1 Jul 2026 20:19:29 -0700 Subject: [PATCH] Document module-aware menuet.mk include path The README and menuet.mk header showed a $(GOPATH)/src include path, which doesn't exist for Go-modules consumers. Recommend locating the file in the module cache via go list -m instead. Co-Authored-By: Claude Fable 5 Claude-Session: https://claude.ai/code/session_01HmSeWbtYum34tu1PGBK1Lj --- README.md | 5 ++++- menuet.mk | 5 ++++- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 597b792..05db480 100644 --- a/README.md +++ b/README.md @@ -59,9 +59,12 @@ app directory, create a `Makefile` like: ```make APP=My App IDENTIFIER=com.example.myapp -include $(GOPATH)/src/github.com/caseymrm/menuet/menuet.mk +include $(shell go list -m -f '{{.Dir}}' github.com/caseymrm/menuet)/menuet.mk ``` +(`go list -m` locates menuet in the module cache; the old +`$(GOPATH)/src/...` path only works for pre-modules GOPATH checkouts.) + Then `make run` builds the binary into `My App.app/Contents/MacOS/myapp`, generates `My App.app/Contents/Info.plist` with your `CFBundleIdentifier`, and launches it. The `cmd/catalog` example uses this pattern. diff --git a/menuet.mk b/menuet.mk index 2c4e882..ef4323b 100644 --- a/menuet.mk +++ b/menuet.mk @@ -3,7 +3,10 @@ # For example: # # APP=Hello World -# include $(GOPATH)/src/github.com/caseymrm/menuet/menuet.mk +# include $(shell go list -m -f '{{.Dir}}' github.com/caseymrm/menuet)/menuet.mk +# +# (go list -m finds menuet in the module cache; use a direct path instead +# if you have a local checkout.) # # Optional features: #