certwarden-deploy/Makefile

17 lines
395 B
Makefile

# Set the default Go build flags
GOFLAGS = -ldflags='-w -s -X main.Version=$(VERSION)'
# Build the application
build:
go build $(GOFLAGS) -o bin/mailcow-admin-aliases cmd/mailcow-admin-aliases/main.go
# Clean the build artifacts
clean:
rm -rf bin
# Run the application
run: build
./bin/mailcow-admin-aliases
# Set a version for the build
VERSION := $(shell git describe --tags --always)