-
Notifications
You must be signed in to change notification settings - Fork 22
/
Makefile
42 lines (35 loc) · 1.09 KB
/
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
34
35
36
37
38
39
40
# -*- coding:utf-8 -*-
.PHONY: get-deps
.PHONY: vendor
build:
go install github.com/jixiuf/fund/db
go install github.com/jixiuf/fund/defs
go install github.com/jixiuf/fund/dt
go install github.com/jixiuf/fund/utils
go install github.com/jixiuf/fund/eastmoney
go install github.com/jixiuf/fund/main/datainit
go install github.com/jixiuf/fund/main/dailyupdate
go install github.com/jixiuf/fund/main/rank_period
get-deps:
mkdir -p $$GOPATH/src/golang.org/x
if [ ! -d $$GOPATH/src/golang.org/x/net ]; then \
cd $$GOPATH/src/golang.org/x;git clone https://github.com/golang/net.git ;cd -; \
else \
cd $$GOPATH/src/golang.org/x/net;git pull;cd -; \
fi
mkdir -p $$GOPATH/src/golang.org/x
if [ ! -d $$GOPATH/src/golang.org/x/text ]; then \
cd $$GOPATH/src/golang.org/x;git clone https://github.com/golang/text.git ;cd -; \
else \
cd $$GOPATH/src/golang.org/x/text;git pull;cd -; \
fi
go get github.com/PuerkitoBio/goquery
vendor:
if [ -z `command -v godep` ] ; then \
go get github.com/tools/godep;\
fi
if [ -d vendor ] ; then \
godep update ./...; \
else \
godep save ./...; \
fi