From b2da7586b0b678943daf9ddac6b70def38c2ac1f Mon Sep 17 00:00:00 2001 From: Ray Slakinski Date: Tue, 15 Jun 2021 09:26:55 -0400 Subject: [PATCH] added a makefile --- .gitignore | 2 +- Makefile | 16 ++++++++++++++++ 2 files changed, 17 insertions(+), 1 deletion(-) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index 11948d8..e13f368 100644 --- a/.gitignore +++ b/.gitignore @@ -14,4 +14,4 @@ # Dependency directories (remove the comment below to include it) # vendor/ -/ontvacstat \ No newline at end of file +/bin/* \ No newline at end of file diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..1e551a7 --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ +build: + go build -ldflags "-s -w" -o bin/ontvacstat main.go + +debug: + go build -o bin/ontvacstat-debug main.go + +all: build debug + +run: + go run main.go + +clean: + rm -f bin/* + +install: + cp bin/ontvacstat /usr/local/bin \ No newline at end of file