summaryrefslogtreecommitdiff
path: root/Makefile
blob: 637952b71143e72b59aad9a6da64b33ecb14dda8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
all:
	make redomod
	GO111MODULE= go build
	sudo ./virtigod

# makes a .deb package
debian:
	go-deb --no-gui --repo go.wit.com/lib/daemons/virtigod

goimports:
	goimports -w *.go

redomod:
	rm -f go.*
	GO111MODULE= go mod init
	GO111MODULE= go mod tidy

clean:
	rm -f go.*
	rm -f virtigod

# git clone the sources and all the golang dependancies into ~/go/src
# if you don't have go-clone, you can get it from http://go.wit.com/
git-clone:
	# go-clone --recursive --go-src --no-work go.wit.com/apps/go-clone
	go-clone --recursive --go-src --no-work go.wit.com/lib/daemons/virtigod