Skip to content
This repository was archived by the owner on Mar 13, 2021. It is now read-only.

Commit 2b9744c

Browse files
scothistrisberg
authored andcommitted
Use proper main location for building riff
./main.go is a symlink to ./cmd/riff/main.go, it's intedned as a fall back, but not the main entry point. We should use the proper entry point when building riff. Refs #1155
1 parent d3edfd7 commit 2b9744c

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,12 +49,12 @@ install: build
4949
cp $(OUTPUT) $(GOBIN)
5050

5151
$(OUTPUT): $(GO_SOURCES) VERSION
52-
GO111MODULE=on go build -o $(OUTPUT) -ldflags "$(LDFLAGS_VERSION)"
52+
GO111MODULE=on go build -o $(OUTPUT) -ldflags "$(LDFLAGS_VERSION)" ./cmd/riff
5353

5454
release: $(GO_SOURCES) VERSION
55-
GOOS=darwin GOARCH=amd64 GO111MODULE=on go build -ldflags "$(LDFLAGS_VERSION)" -o $(OUTPUT) && tar -czf riff-darwin-amd64.tgz $(OUTPUT) && rm -f $(OUTPUT)
56-
GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags "$(LDFLAGS_VERSION)" -o $(OUTPUT) && tar -czf riff-linux-amd64.tgz $(OUTPUT) && rm -f $(OUTPUT)
57-
GOOS=windows GOARCH=amd64 GO111MODULE=on go build -ldflags "$(LDFLAGS_VERSION)" -o $(OUTPUT).exe && zip -mq riff-windows-amd64.zip $(OUTPUT).exe && rm -f $(OUTPUT).exe
55+
GOOS=darwin GOARCH=amd64 GO111MODULE=on go build -ldflags "$(LDFLAGS_VERSION)" -o $(OUTPUT) ./cmd/riff && tar -czf riff-darwin-amd64.tgz $(OUTPUT) && rm -f $(OUTPUT)
56+
GOOS=linux GOARCH=amd64 GO111MODULE=on go build -ldflags "$(LDFLAGS_VERSION)" -o $(OUTPUT) ./cmd/riff && tar -czf riff-linux-amd64.tgz $(OUTPUT) && rm -f $(OUTPUT)
57+
GOOS=windows GOARCH=amd64 GO111MODULE=on go build -ldflags "$(LDFLAGS_VERSION)" -o $(OUTPUT).exe ./cmd/riff && zip -mq riff-windows-amd64.zip $(OUTPUT).exe && rm -f $(OUTPUT).exe
5858

5959
docs: $(OUTPUT) clean-docs
6060
$(OUTPUT) docs

0 commit comments

Comments
 (0)