Initial commit
This commit is contained in:
13
service/makefile
Normal file
13
service/makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
# Sane build defaults
|
||||
CGO_ENABLED ?= 0
|
||||
LDFLAGS ?= "-s -w"
|
||||
|
||||
run-%:
|
||||
@go run \
|
||||
cmd/$*/main.go
|
||||
|
||||
build-%:
|
||||
@CGO_ENABLED=$(CGO_ENABLED) go build \
|
||||
-ldflags $(LDFLAGS) -o bin/$* cmd/$*/main.go
|
||||
|
||||
.PHONY: %
|
||||
Reference in New Issue
Block a user