From f29192bca333c4597e3113a9828fa0574d425c86 Mon Sep 17 00:00:00 2001
From: Yuki <paselan@gmail.com>
Date: Thu, 18 Oct 2018 19:27:25 +0900
Subject: [PATCH] Add Makefile

---
 .gitignore |  2 ++
 Makefile   | 15 +++++++++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 Makefile

diff --git a/.gitignore b/.gitignore
index ce976be..bf1a8d2 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,2 +1,4 @@
 alfred-chrome-history
 chrome-history
+*.alfredworkflow
+build/
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..da39961
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,15 @@
+PROJECT  = alfred-chrome-history
+TESTARGS ?= -v
+
+dist: build
+	(cd build && zip -r "../$(PROJECT).alfredworkflow" .)
+.PHONY: dist
+
+build:
+	go build -o build/$(PROJECT) -ldflags="-s -w"
+	cp _workflow/* build/
+.PHONY: build
+
+test:
+	go test ./... $(TESTARGS)
+.PHONY: test