Browse Source

added a makefile

main
Ray Slakinski 1 year ago
parent
commit
b2da7586b0
  1. 2
      .gitignore
  2. 16
      Makefile

2
.gitignore vendored

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

16
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
Loading…
Cancel
Save