/
Makefile
33 lines (25 loc) · 1008 Bytes
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
prep:
if test -d pkg; then rm -rf pkg; fi
self: prep
if test -d src; then rm -rf src; fi
mkdir -p src
cp -r vendor/* src/
rmdeps:
if test -d src; then rm -rf src; fi
build: rmdeps deps fmt bin
fmt:
go fmt cmd/*.go
deps:
@GOPATH=$(shell pwd) go get -u "github.com/cooperhewitt/go-cooperhewitt-api"
@GOPATH=$(shell pwd) go get -u "github.com/adrianuswarmenhoven/goconf"
vendor-deps: rmdeps deps
if test ! -d vendor; then mkdir vendor; fi
if test -d vendor; then rm -rf vendor; fi
cp -r src vendor
find vendor -name '.git' -print -type d -exec rm -rf {} +
rm -rf src
bin: self
@GOPATH=$(shell pwd) go build -o bin/shoebox cmd/shoebox.go
yesnofix:
curl -s -o javascript/mapzen.whosonfirst.yesnofix.js https://raw.githubusercontent.com/whosonfirst/js-mapzen-whosonfirst-yesnofix/master/src/mapzen.whosonfirst.yesnofix.js
curl -s -o css/mapzen.whosonfirst.yesnofix.css https://raw.githubusercontent.com/whosonfirst/js-mapzen-whosonfirst-yesnofix/master/src/mapzen.whosonfirst.yesnofix.css