Skip to content

Commit

Permalink
makefile cross
Browse files Browse the repository at this point in the history
  • Loading branch information
arteev committed Dec 21, 2017
1 parent 4b8d712 commit 9ae2613
Showing 1 changed file with 10 additions and 3 deletions.
13 changes: 10 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,14 +10,21 @@ lint:
go vet
gometalinter --deadline=15s ./...

build: lint
go build ${LDFLAGS} -o dsql
build:
go build ${LDFLAGS} -o dsql

cross:
CGO_ENABLED=1 GOOS=windows GOARCH= CC=x86_64-w64-mingw32-gcc-win32 go build ${LDFLAGS} -o dsql.exe

run:
go run ${LDFLAGS} main.go

zip: build
zip dsql-linux-$(shell arch).zip dsql
zip dsql-linux-$(shell arch)-${VERSION}.zip dsql

zipcross: cross
zip dsql-win64-${VERSION}.zip dsql.exe


test:
go test -v ./...

0 comments on commit 9ae2613

Please sign in to comment.