Last active
January 12, 2017 14:50
-
-
Save dovys/b68e53553690e1c392c0d8d20261e042 to your computer and use it in GitHub Desktop.
mboard/Makefile
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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