diff --git a/Makefile b/Makefile index e265fea..128ac0e 100644 --- a/Makefile +++ b/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: diff --git a/README.md b/README.md index 5a351d6..4679ee6 100644 --- a/README.md +++ b/README.md @@ -75,7 +75,7 @@ $ heroku run bin/dbmate-heroku up Dbmate can be installed directly using `go get`: ```sh -$ go get -u github.com/amacneil/dbmate/cmd/dbmate +$ go get -u github.com/amacneil/dbmate ``` ## Commands diff --git a/cmd/dbmate/main.go b/main.go similarity index 100% rename from cmd/dbmate/main.go rename to main.go diff --git a/cmd/dbmate/main_test.go b/main_test.go similarity index 100% rename from cmd/dbmate/main_test.go rename to main_test.go