mirror of
https://github.com/KevinMidboe/motdGO.git
synced 2025-10-29 09:40:23 +00:00
Makefile for build & install
This commit is contained in:
13
Makefile
Normal file
13
Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
.PHONY: build install
|
||||
|
||||
build:
|
||||
export GO11MODULE="auto" \
|
||||
go mod download; \
|
||||
go mod vendor; \
|
||||
CGO_ENABLED=0 go build -a -ldflags '-s' -installsuffix cgo -o motd-larry cmd/figlet4go/main.go
|
||||
|
||||
install:
|
||||
export GO11MODULE="on"; \
|
||||
go mod tidy; \
|
||||
go mod download
|
||||
|
||||
Reference in New Issue
Block a user