Skip to content

Commit

Permalink
Account for all *.go files in the repo in the Makefile build target
Browse files Browse the repository at this point in the history
  • Loading branch information
knadh committed Jun 29, 2021
1 parent 5e2c24b commit 3be5227
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 3be5227

Please sign in to comment.