Skip to content

Commit 1b5b297

Browse files
authored
Actually fix 'make build' (go-gitea#353)
* Actually fix bloddy 'make build'
1 parent 2b63f32 commit 1b5b297

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ LDFLAGS += -X "code.gitea.io/gitea/modules/setting.BuildGitHash=$(SHA)"
1414

1515
TARGETS ?= linux/*,darwin/*,windows/*
1616
PACKAGES ?= $(shell go list ./... | grep -v /vendor/)
17+
SOURCES ?= $(shell find . -name "*.go" -type f)
1718

1819
TAGS ?=
1920

@@ -86,8 +87,7 @@ install: $(wildcard *.go)
8687
.PHONY: build
8788
build: $(EXECUTABLE)
8889

89-
.PHONY: $(EXECUTABLE)
90-
$(EXECUTABLE): $(wildcard *.go)
90+
$(EXECUTABLE): $(SOURCES)
9191
go build -v -tags '$(TAGS)' -ldflags '-s -w $(LDFLAGS)' -o $@
9292

9393
.PHONY: release

0 commit comments

Comments
 (0)