summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJackson Taylor <jtaylormuffins@gmail.com>2020-04-12 14:20:00 -0400
committerJackson Taylor <jtaylormuffins@gmail.com>2020-04-12 14:20:00 -0400
commit82d9f60bb183b9b85a470d2f61101ee9bfa2a95b (patch)
tree0a13ceaf45d3d504e2dabade6692cf29a532ef46 /Makefile
parent3d2804db63244f990eb4136bf9d0687e677b6b73 (diff)
Add new rule to Makefile
Add go run to Makefile
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index b64c43a..bb8e176 100644
--- a/Makefile
+++ b/Makefile
@@ -2,6 +2,7 @@ GOCMD=go
GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean
GOTEST=$(GOCMD) test
+GORUN=$(GOCMD) run
BINARY_NAME=jasbr
all: build
@@ -11,3 +12,6 @@ test:
$(GOTEST) -v ./...
clean:
$(GOCLEAN)
+run:
+ $(GOBUILD) -o $(BINARY_NAME) -v ./...
+ ./$(BINARY_NAME)