Skip to content

High performance, self-hosted, newsletter and mailing list manager with a modern dashboard. Single binary app.

Account for all *.go files in the repo in the Makefile build target

Kailash Nadh3be5227c2234
diff --git a/Makefile b/Makefile
index 12f52977..dffc42fe 100644
--- a/Makefile
+++ b/Makefile
@@ -34,7 +34,7 @@ $(FRONTEND_YARN_MODULES): frontend/package.json frontend/yarn.lock
touch --no-create $(FRONTEND_YARN_MODULES)
# Build the backend to ./listmonk.
-$(BIN): $(shell find cmd -type f -name "*.go")
+$(BIN): $(shell find . -type f -name "*.go")
CGO_ENABLED=0 go build -o ${BIN} -ldflags="-s -w -X 'main.buildString=${BUILDSTR}' -X 'main.versionString=${VERSION}'" cmd/*.go
# Run the backend.