Files
blt/Makefile
T
Gregory Ballantine 58dd358acb
ci/woodpecker/push/woodpecker Pipeline was successful
Added Docker container and compose definitions to make development easier
2026-07-24 11:00:35 -04:00

32 lines
649 B
Makefile

NAME=blt
VERSION=`git describe --tags`
# used for changing the output directory within docker containers
BUILD_DIR ?= .
dev-up:
docker compose -f docker-dev.yml up -d
dev-down:
docker compose -f docker-dev.yml down
dev-build:
docker compose -f docker-dev.yml build
build:
@echo "Building Go binary..."
@go build -o $(BUILD_DIR)/$(NAME) -ldflags "-X git.metaunix.net/bitgoblin/blt/app.AppVersion=$(VERSION)"
run:
$(BUILD_DIR)/$(NAME)
.PHONY: help
all: help
# help: show this help message
help: Makefile
@echo
@echo " Choose a command to run in "$(APP_NAME)":"
@echo
@sed -n 's/^##//p' $< | column -t -s ':' | sed -e 's/^/ /'
@echo