Skip to content

Instantly share code, notes, and snippets.

View xf0e's full-sized avatar
💭
writing comments for compiler...

xf0e

💭
writing comments for compiler...
View GitHub Profile
@xf0e
xf0e / makefile
Created July 21, 2019 16:58 — forked from aprice/makefile
Full base Golang makefile for developers and Jenkins. Handles installing tools, formatting, linting, cross-compilation, installation, and packaging for distribution.
# This file is intended as a starting point for a customized makefile for a Go project.
#
# Targets:
# all: Format, check, build, and test the code
# setup: Install build/test toolchain dependencies (e.g. gox)
# lint: Run linters against source code
# format: Format the source files
# build: Build the command(s) for target OS/arch combinations
# install: Install the command(s)
# clean: Clean the build/test artifacts