Skip to content

Commit d72c200

Browse files
authored
Merge pull request #419 from dawidd6/patch-1
Makefile: provide a simpler build task
2 parents 07052cd + ea98a5b commit d72c200

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ TEST_FLAGS ?=
66
REPO_OWNER ?= $(shell cd .. && basename "$$(pwd)")
77
COVERAGE_DIR ?= .coverage
88

9+
build:
10+
CGO_ENABLED=0 go build -ldflags='-X main.Version=$(VERSION)' -tags '$(DATABASE) $(SOURCE)' ./cmd/migrate
911

1012
build-cli: clean
1113
-mkdir ./cli/build
@@ -100,7 +102,7 @@ define external_deps
100102
endef
101103

102104

103-
.PHONY: build-cli clean test-short test test-with-flags html-coverage \
105+
.PHONY: build build-cli clean test-short test test-with-flags html-coverage \
104106
restore-import-paths rewrite-import-paths list-external-deps release \
105107
docs kill-docs open-docs kill-orphaned-docker-containers
106108

0 commit comments

Comments
 (0)