Makefile 486 Bytes
Newer Older
Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
1 2 3
build:
	go build

Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
4 5
test: build
	go test -race -cpu=5 -v ./...
6

7 8 9 10 11 12
# saves/vendors third-party dependencies to Godeps/_workspace
# -r flag rewrites import paths to use the vendored path
# ./... performs operation on all packages in tree
vendor: godep
	godep save -r ./...

Juan Batiz-Benet's avatar
Juan Batiz-Benet committed
13 14 15 16 17 18 19 20 21
deps:
	go get ./...

watch:
	-make
	@echo "[watching *.go; for recompilation]"
	# for portability, use watchmedo -- pip install watchmedo
	@watchmedo shell-command --patterns="*.go;" --recursive \
		--command='make' .