-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
30 lines (21 loc) · 808 Bytes
/
Makefile
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
27
28
29
30
.PHONY: windows linux
GO111MODULE = on
GOARCH = amd64
all: windows linux
windows: windows_standalone windows_communicator
linux: linux_standalone linux_communicator build_deb
windows_standalone:
set GOOS = windows
@go build -o build/standalone.exe -tags=webui github.com/vaizmanai/clvisit/cmd/communicator
windows_communicator:
set GOOS = windows
@go build -o build/communicator.exe github.com/vaizmanai/clvisit/cmd/communicator
linux_standalone:
set GOOS = linux
@go build -o build/standalone -tags=webui github.com/vaizmanai/clvisit/cmd/communicator
linux_communicator:
set GOOS = linux
@go build -o build/communicator github.com/vaizmanai/clvisit/cmd/communicator
build_deb: linux_standalone
@cp build/standalone init/deb/opt/remote-admin/admin
fakeroot dpkg-deb --build init/deb build