mirror of
https://github.com/ivuorinen/paperboy.git
synced 2026-02-10 20:49:28 +00:00
Initial commit
This commit is contained in:
13
Makefile
Normal file
13
Makefile
Normal file
@@ -0,0 +1,13 @@
|
||||
default: help
|
||||
|
||||
VERSION?=dev
|
||||
|
||||
.PHONY: help
|
||||
help: # Show help for each of the Makefile recipes.
|
||||
@grep -E '^[a-zA-Z0-9 -]+:.*#' Makefile | sort | while read -r l; do printf "\033[1;32m$$(echo $$l | cut -f 1 -d':')\033[00m:$$(echo $$l | cut -f 2- -d'#')\n"; done
|
||||
|
||||
build: # Build the binary. Use VERSION (make build VERSION=1.2.3) to set the build version.
|
||||
go build -o paperboy \
|
||||
-ldflags "-X main.version=${VERSION}" \
|
||||
main.go
|
||||
|
||||
Reference in New Issue
Block a user