From a976425a4f0682531ce85fab45198a5ca1817bb7 Mon Sep 17 00:00:00 2001 From: eleksir Date: Thu, 12 May 2022 02:24:03 +0300 Subject: [PATCH] =?UTF-8?q?=D0=98=D1=81=D0=BF=D0=BE=D0=BB=D1=8C=D0=B7?= =?UTF-8?q?=D1=83=D0=B5=D0=BC=20Makefile=20=D0=B2=D0=BC=D0=B5=D1=81=D1=82?= =?UTF-8?q?=D0=BE=20make.sh?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- Makefile | 22 ++++++++++++++++++++++ make.sh | 3 --- 2 files changed, 22 insertions(+), 3 deletions(-) create mode 100644 Makefile delete mode 100755 make.sh diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1c4aa79 --- /dev/null +++ b/Makefile @@ -0,0 +1,22 @@ +#!/usr/bin/env gmake -f + +GOOPTS=CGO_ENABLED=0 +BUILDOPTS=-ldflags="-s -w" -a -gcflags=all=-l + +all: clean build + +build: + ${GOOPTS} go build ${BUILDOPTS} + +clean: + go clean + +wipe: + go clean + rm -rf go.{mod,sum} + +prep: + go mod init main + go mod tidy -compat=1.17 + +# vim: set ft=make noet ai ts=4 sw=4 sts=4: diff --git a/make.sh b/make.sh deleted file mode 100755 index d45bc0e..0000000 --- a/make.sh +++ /dev/null @@ -1,3 +0,0 @@ -#!/bin/bash - -CGO_ENABLED=0 go build -ldflags="-s -w" -a -gcflags=all=-l