From 2040dc3a14d8e4275d7c9c24d1628e4a54a32446 Mon Sep 17 00:00:00 2001 From: Vasile Popescu Date: Sat, 14 Sep 2019 22:11:36 +0200 Subject: [PATCH] Add a target in the Makefile for getting the deps --- Makefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 170e07e..0b36d89 100644 --- a/Makefile +++ b/Makefile @@ -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)