add makefile

merge-requests/1/head
Matthew 2020-12-11 00:21:39 -05:00
parent 53e8f05e75
commit bc6eb8b1cb
No known key found for this signature in database
GPG Key ID: 210AF32ADE3B5C4B
1 changed files with 14 additions and 0 deletions

14
Makefile Normal file
View File

@ -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