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