BillionMail gives you open-source MailServer, NewsLetter, Email Marketing — fully self-hosted, dev-friendly, and free from monthly fees. Join the discord: https://discord.gg/asfXzBUhZr
# Makefile for ACME CLI tool
# Go parameters
GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
BINARY_NAME=acme-cli
# Default target is to build the binary
all: build
# Build the binary
build:
$(GOBUILD) -o $(BINARY_NAME) -v
# Clean build artifacts
clean:
$(GOCLEAN)
rm -f $(BINARY_NAME)
# Cross-platform builds
build-linux:
GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_NAME)-linux-amd64 -v
build-windows:
GOOS=windows GOARCH=amd64 $(GOBUILD) -o $(BINARY_NAME)-windows-amd64.exe -v
build-mac:
GOOS=darwin GOARCH=amd64 $(GOBUILD) -o $(BINARY_NAME)-darwin-amd64 -v
# Build for all platforms
build-all: build-linux build-windows build-mac
# Install to GOPATH/bin
install:
$(GOBUILD) -o $(GOPATH)/bin/$(BINARY_NAME) -v
.PHONY: all build clean build-linux build-windows build-mac build-all install