forked from tsuru/gandalf
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
30 lines (21 loc) · 757 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
BUILD_DIR = build
GANDALF_WEBSERVER_BIN = $(BUILD_DIR)/gandalf-webserver
GANDALF_WEBSERVER_SRC = webserver/main.go
GANDALF_SSH_BIN = $(BUILD_DIR)/gandalf-ssh
GANDALF_SSH_SRC = bin/gandalf.go
test:
go clean $(GO_EXTRAFLAGS) ./...
go test $(GO_EXTRAFLAGS) ./...
doc:
@cd docs && make html
binaries: gandalf-webserver gandalf-ssh
gandalf-webserver: $(GANDALF_WEBSERVER_BIN)
$(GANDALF_WEBSERVER_BIN):
go build -o $(GANDALF_WEBSERVER_BIN) $(GANDALF_WEBSERVER_SRC)
run-gandalf-webserver: $(GANDALF_WEBSERVER_BIN)
$(GANDALF_WEBSERVER_BIN) $(GANDALF_WEBSERVER_OPTIONS)
gandalf-ssh: $(GANDALF_SSH_BIN)
$(GANDALF_SSH_BIN):
go build -o $(GANDALF_SSH_BIN) $(GANDALF_SSH_SRC)
run-gandalf-ssh: $(GANDALF_SSH_BIN)
$(GANDALF_SSH_BIN) $(GANDALF_SSH_OPTIONS)