BINARY_NAME=s3browser all: build build-web: deps-js yarn --cwd s3browser-frontend run build build-backend: deps-go cd s3browser-backend && go build -o "../${BINARY_NAME}" -tags prod ./cmd/s3Browser.go cp-static: cp -r s3browser-frontend/build s3browser-backend/internal/static build: build-web cp-static build-backend clean: rm -rf s3browser-frontend/build rm -rf s3browser-backend/internal/static rm -f ${BINARY_NAME} cd s3browser-backend && go clean deps: deps-js deps-go deps-js: yarn --cwd s3browser-frontend install deps-go: cd s3browser-backend && go mod download dev-backend: cd s3browser-backend && env $$(grep -v '^#' .env | xargs) go run ./cmd/s3Browser.go dev-web: yarn --cwd s3browser-frontend run start gen-schema-download: yarn --cwd s3browser-frontend run graphql:download gen-schema: yarn --cwd s3browser-frontend run graphql:gen test-backend: cd s3browser-backend && go test ./...