improved makefile
This commit is contained in:
parent
01e57ec116
commit
ef25f1db1b
12
Makefile
12
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:
|
||||
|
Loading…
Reference in New Issue
Block a user