-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
38 lines (27 loc) · 740 Bytes
/
Makefile
File metadata and controls
38 lines (27 loc) · 740 Bytes
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
31
32
33
34
35
36
37
38
GOPATH := $(shell go env GOPATH)
all: check install agent browser trayIcon desktop
dev:
@go run . restart -d
run:
@go run . restart
install:
@go install
check:
@go run -tags install installation.go
@if [ $$? -ne 0 ]; then \
echo "Error occured. Exiting."; \
exit 1; \
fi
agent:
@cd agent/internal/frontend && $(MAKE) -f Makefile build
browser:
@cd browser && $(MAKE) -f Makefile install
trayIcon:
@cd icon && $(MAKE) -f Makefile install
desktop:
# we need to start the daemon first before compiling the desktop app.
@go run . restart &
@echo "waiting for daemon to setup (4secs)..." && sleep 4
@cd desktop && $(MAKE) -f Makefile install
@go run . stop
.PHONY: agent browser trayIcon desktop dev install all