From 938aa0448cc296489b2c34e888d16a9a431e24c6 Mon Sep 17 00:00:00 2001 From: eikendev Date: Tue, 5 Jan 2021 00:28:10 +0100 Subject: [PATCH] Add Makefile target to build project --- .gitignore | 2 +- Makefile | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index cf52576..e4f3cd3 100644 --- a/.gitignore +++ b/.gitignore @@ -1,7 +1,7 @@ +app *.db config.yml debugging/ -pushbits ### Go # Binaries for programs and plugins diff --git a/Makefile b/Makefile index 41855b1..2af8bdb 100644 --- a/Makefile +++ b/Makefile @@ -1,5 +1,9 @@ IMAGE := eikendev/pushbits +.PHONY: build +build: + go build -ldflags="-w -s" -o app . + .PHONY: test test: stdout=$$(gofmt -l . 2>&1); \