From bc6eb8b1cb70e12d67319a00ffc49c81c79cae26 Mon Sep 17 00:00:00 2001 From: Matthew R Date: Fri, 11 Dec 2020 00:21:39 -0500 Subject: [PATCH] add makefile --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) create mode 100644 Makefile diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..31f70e2 --- /dev/null +++ b/Makefile @@ -0,0 +1,14 @@ +## Usage: + +go_files := $(wildcard cmd/*.go) +path := $(shell pwd) + +all: clean build + +clean: + @-rm -rf ./build + +build: + @-mkdir ./build + go build -v -ldflags="-s -w" -o build/certificateapi ${go_files} + @file certificateapi