added a makefile

main
Ray Slakinski 2021-06-15 09:26:55 -04:00
parent feed842941
commit b2da7586b0
2 changed files with 17 additions and 1 deletions

2
.gitignore vendored
View File

@ -14,4 +14,4 @@
# Dependency directories (remove the comment below to include it) # Dependency directories (remove the comment below to include it)
# vendor/ # vendor/
/ontvacstat /bin/*

16
Makefile 100644
View File

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