Updated Makefile to build library and command separately
This commit is contained in:
6
Makefile
6
Makefile
@@ -1,9 +1,11 @@
|
|||||||
.DEFAULT_GOAL := build
|
.DEFAULT_GOAL := buildCmd
|
||||||
.PHONY: fmt vet build
|
.PHONY: fmt vet build
|
||||||
|
|
||||||
fmt:
|
fmt:
|
||||||
go fmt ./...
|
go fmt ./...
|
||||||
vet: fmt
|
vet: fmt
|
||||||
go vet ./...
|
go vet ./...
|
||||||
build: vet
|
buildLib: vet
|
||||||
go build -gcflags="-N -l" ./...
|
go build -gcflags="-N -l" ./...
|
||||||
|
buildCmd: buildLib
|
||||||
|
go build -C cmd/ -o re ./...
|
||||||
|
Reference in New Issue
Block a user