Skip to content

Instantly share code, notes, and snippets.

@dovys
Last active January 12, 2017 14:50
Show Gist options
  • Save dovys/b68e53553690e1c392c0d8d20261e042 to your computer and use it in GitHub Desktop.
Save dovys/b68e53553690e1c392c0d8d20261e042 to your computer and use it in GitHub Desktop.
mboard/Makefile
SHELL = /bin/bash
MAKEFLAGS=-s
BINARY = mboard
TEST_DIRECTORIES = ./handlers ./services
$(BINARY):
go build -o $(BINARY)
echo "Binary:" $(CURDIR)/$(BINARY)
install:
which glide > /dev/null || { echo "glide not found. run brew install glide"; exit 1; }
glide install
testv:
go test -v $(TEST_DIRECTORIES)
test:
go test $(TEST_DIRECTORIES)
clean:
if [ -f $(BINARY) ]; then rm $(BINARY); fi
.PHONY: clean install test testv
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment