Makefile for build & install

This commit is contained in:
2023-08-13 19:37:33 +02:00
parent 55ce39ddf4
commit db9055aad1

13
Makefile Normal file
View 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