From d45bfe511d9a6542b87430f4d36c07738d26b925 Mon Sep 17 00:00:00 2001
From: Will McCutchen <will@mccutch.org>
Date: Tue, 30 May 2017 18:23:13 -0700
Subject: [PATCH] Add `make watch`

---
 Makefile | 5 +++++
 1 file changed, 5 insertions(+)

diff --git a/Makefile b/Makefile
index 2337c41..037a26d 100644
--- a/Makefile
+++ b/Makefile
@@ -18,6 +18,11 @@ testcover: assets
 run: build
 	./dist/go-httpbin
 
+watch:
+	# brew install entr
+	# https://bitbucket.org/eradman/entr/
+	ls */*.go | entr -r -s "go build -o dist/go-httpbin && dist/go-httpbin"
+
 clean:
 	rm -r dist
 
-- 
GitLab