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
|
DC := docker-compose
|
||||||
BUILD_FLAGS := -ldflags '-s'
|
BUILD_FLAGS := -ldflags '-s'
|
||||||
PACKAGES := ./cmd/... ./pkg/...
|
PACKAGES := . ./pkg/...
|
||||||
|
|
||||||
.PHONY: all
|
.PHONY: all
|
||||||
all: dep install test lint build
|
all: dep install test lint build
|
||||||
|
|
@ -29,9 +29,9 @@ clean:
|
||||||
|
|
||||||
.PHONY: build
|
.PHONY: build
|
||||||
build: clean
|
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
|
# 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
|
.PHONY: docker
|
||||||
docker:
|
docker:
|
||||||
|
|
|
||||||
|
|
@ -75,7 +75,7 @@ $ heroku run bin/dbmate-heroku up
|
||||||
Dbmate can be installed directly using `go get`:
|
Dbmate can be installed directly using `go get`:
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
$ go get -u github.com/amacneil/dbmate/cmd/dbmate
|
$ go get -u github.com/amacneil/dbmate
|
||||||
```
|
```
|
||||||
|
|
||||||
## Commands
|
## Commands
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue