Add a target in the Makefile for getting the deps

pull/14/merge
Vasile Popescu 5 years ago
parent 78b9ecb4fc
commit 2040dc3a14

@ -1,3 +1,4 @@
DEPS=github.com/elisescu/pty github.com/sirupsen/logrus golang.org/x/crypto/ssh/terminal github.com/gorilla/mux github.com/gorilla/websocket
DEST_DIR=./out
TTY_SERVER=$(DEST_DIR)/tty-server
TTY_SHARE=$(DEST_DIR)/tty-share
@ -13,9 +14,12 @@ COMMON_SRC=$(wildcard ./common/*go)
TTY_SERVER_ASSETS=$(wildcard frontend/public/*)
## tty-share command (the client/sender side)
all: $(TTY_SHARE) # do this by default, so no need to mess up with building the frontend
all: get-deps $(TTY_SHARE) # do this by default, so no need to mess up with building the frontend
@echo "All done"
get-deps:
go get $(DEPS)
# Building the server and tty-share
$(TTY_SERVER): $(TTY_SERVER_SRC) $(COMMON_SRC)
go build -o $@ $(TTY_SERVER_SRC)

Loading…
Cancel
Save