Last active
January 23, 2018 14:44
-
-
Save JohnMurray/3f40338472a139c0c1012a43e52d4307 to your computer and use it in GitHub Desktop.
A simple makefile for a blog post
This file contains hidden or 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
BUILD_OPTS=-p4 -race | |
BIN_NAME=my_app | |
default: test | |
.PHONY: test | |
test: compile | |
@echo | |
@echo "[running tests]" | |
@go test -v ./... | |
.PHONY: compile | |
compile: | |
@echo | |
@echo "[compiling]" | |
go build $(BUILD_OPTS) -o $(BIN_NAME) | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment