Move cmd to project root for easier installs (#29)

This commit is contained in:
Adrian Macneil 2018-01-24 11:30:08 -08:00 committed by GitHub
parent e03dec8a04
commit 6ba419a74b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View file

@ -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: