improved makefile

This commit is contained in:
Djeeberjr 2021-09-09 23:04:34 +02:00
parent 01e57ec116
commit ef25f1db1b

View File

@ -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: