Skip to content

Instantly share code, notes, and snippets.

@marshallformula
Created December 6, 2023 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save marshallformula/68e5f7f1fecc0d1edc4fcd172a8255b5 to your computer and use it in GitHub Desktop.
Save marshallformula/68e5f7f1fecc0d1edc4fcd172a8255b5 to your computer and use it in GitHub Desktop.
BINARY_NAME=s3proxy
.PHONY: run
run: build
bin/$(BINARY_NAME)
.PHONY: build
build:
go build -o bin/$(BINARY_NAME) -v ./cmd/s3-proxy/main.go
.PHONY: build_all
build_linux:
export GOOS=linux; export GOARCH=amd64; go build -o bin/$(BINARY_NAME)-linux-amd64 -v ./cmd/s3-proxy/main.go
.PHONY: dev
dev: clean
@echo "Running docker-compose in dev mode"
docker-compose -f compose.yaml -f compose.dev.yaml up -d
.PHONY: clean
clean:
rm -rf bin/$(BINARY_NAME)*
.PHONY: test
test:
go test ./internal...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment