From ef25f1db1b5c53b1abe4a9962412694d59dc8b78 Mon Sep 17 00:00:00 2001 From: Djeeberjr Date: Thu, 9 Sep 2021 23:04:34 +0200 Subject: [PATCH] improved makefile --- Makefile | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index a67aae4..b230be8 100644 --- a/Makefile +++ b/Makefile @@ -1,9 +1,11 @@ BINARY_NAME=s3Browser -build-web: +all: build + +build-web: deps-js yarn --cwd s3browser-frontend run build -build-backend: +build-backend: deps-go cd s3browser-backend && go build -o "../${BINARY_NAME}" -tags prod ./cmd/s3Browser.go cp-static: @@ -17,8 +19,12 @@ clean: rm -f ${BINARY_NAME} cd s3browser-backend && go clean -deps: +deps: deps-js deps-go + +deps-js: yarn --cwd s3browser-frontend install + +deps-go: cd s3browser-backend && go mod download dev-backend: