livetrace/Makefile
Eliezer Croitoru 9621a23c79 V3.3.2
2026-09-09 17:10:45 +03:00

19 lines
413 B
Makefile

.PHONY: all build clean
APP_NAME = myapp
OUT_DIR = ./dist
all: build
fmt:
docker run --rm -v $(PWD)/src:/src golang:alpine sh -c "gofmt -w /src/*.go"
# Builds both binaries inside Docker and exports them locally
build:
@mkdir -p $(OUT_DIR)
DOCKER_BUILDKIT=1 docker build --target bin --output type=local,dest=$(OUT_DIR) .
@echo "Build complete! Binaries located in $(OUT_DIR)"
clean:
rm -rf $(OUT_DIR)