mirror of
https://github.com/TECHNOFAB11/dbmate.git
synced 2025-12-11 23:50:04 +01:00
Move cmd to project root for easier installs (#29)
This commit is contained in:
parent
e03dec8a04
commit
6ba419a74b
4 changed files with 4 additions and 4 deletions
6
Makefile
6
Makefile
|
|
@ -1,6 +1,6 @@
|
|||
DC := docker-compose
|
||||
BUILD_FLAGS := -ldflags '-s'
|
||||
PACKAGES := ./cmd/... ./pkg/...
|
||||
PACKAGES := . ./pkg/...
|
||||
|
||||
.PHONY: all
|
||||
all: dep install test lint build
|
||||
|
|
@ -29,9 +29,9 @@ clean:
|
|||
|
||||
.PHONY: build
|
||||
build: clean
|
||||
GOARCH=amd64 go build $(BUILD_FLAGS) -o dist/dbmate-linux-amd64 ./cmd/dbmate
|
||||
GOARCH=amd64 go build $(BUILD_FLAGS) -o dist/dbmate-linux-amd64 .
|
||||
# musl target does not support sqlite
|
||||
GOARCH=amd64 CGO_ENABLED=0 go build $(BUILD_FLAGS) -o dist/dbmate-linux-musl-amd64 ./cmd/dbmate
|
||||
GOARCH=amd64 CGO_ENABLED=0 go build $(BUILD_FLAGS) -o dist/dbmate-linux-musl-amd64 .
|
||||
|
||||
.PHONY: docker
|
||||
docker:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue