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: