Skip to content

Instantly share code, notes, and snippets.

View Pieeer1's full-sized avatar

Mason Adams Pieeer1

  • 16:25 (UTC -07:00)
View GitHub Profile
@eleniums
eleniums / Makefile
Last active July 15, 2024 16:25
Sample Go Makefile to build binaries for Windows, Mac, and Linux.
EXECUTABLE=executable-name
WINDOWS=$(EXECUTABLE)_windows_amd64.exe
LINUX=$(EXECUTABLE)_linux_amd64
DARWIN=$(EXECUTABLE)_darwin_amd64
VERSION=$(shell git describe --tags --always --long --dirty)
.PHONY: all test clean
all: test build ## Build and run tests