From 701e470f6379d02f5fe0dd01438b15b585e71800 Mon Sep 17 00:00:00 2001 From: Will McCutchen <will@mccutch.org> Date: Fri, 7 Oct 2016 17:01:47 -0700 Subject: [PATCH] Add basic Makefile --- .gitignore | 2 ++ Makefile | 19 +++++++++++++++++++ 2 files changed, 21 insertions(+) create mode 100644 Makefile diff --git a/.gitignore b/.gitignore index daf913b..2e43c51 100644 --- a/.gitignore +++ b/.gitignore @@ -22,3 +22,5 @@ _testmain.go *.exe *.test *.prof + +dist/* diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..00d0221 --- /dev/null +++ b/Makefile @@ -0,0 +1,19 @@ +build: dist/go-httpbin + +dist/go-httpbin: *.go httpbin/*.go + mkdir -p dist + go build -o dist/go-httpbin + +test: + go test -v github.com/mccutchen/go-httpbin/httpbin + +run: build + ./dist/go-httpbin + +clean: + rm -r dist + +deps: + go get -u github.com/jteeuwen/go-bindata/... + +.PHONY: all -- GitLab