From e4e64158dbda14a3501687e99615554b47b38cc8 Mon Sep 17 00:00:00 2001 From: Vasile Popescu Date: Wed, 16 May 2018 23:54:31 +0200 Subject: [PATCH] Add a "dist" target to build the server for more platforms --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Makefile b/Makefile index 07fead2..63d2c0f 100644 --- a/Makefile +++ b/Makefile @@ -23,6 +23,10 @@ $(TTY_SENDER): $(TTY_SENDER_SRC) $(EXTRA_BUILD_DEPS) tty-server/assets_bundle.go: $(TTY_SERVER_ASSETS) go-bindata --prefix frontend/public/ -o $@ $^ +dist: frontend $(TTY_SENDER_SRC) $(EXTRA_BUILD_DEPS) + GOOS=linux go build -o tty_server.linux $(TTY_SERVER_SRC) + GOOS=darwin go build -o tty_server.darwin $(TTY_SERVER_SRC) + frontend: FORCE cd frontend && npm run build && cd -