Skip to content

Commit

Permalink
Add Makefile
Browse files Browse the repository at this point in the history
  • Loading branch information
pasela committed Oct 18, 2018
1 parent d497349 commit f29192b
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
alfred-chrome-history
chrome-history
*.alfredworkflow
build/
15 changes: 15 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit f29192b

Please sign in to comment.