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