-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathMakefile
105 lines (79 loc) · 2.95 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
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
# cannot use relative path in GOROOT, otherwise 6g not found. For example,
# export GOROOT=../go (=> 6g not found)
# it is also not allowed to use relative path in GOPATH
export GOROOT=$(realpath ../go)
export PATH := $(GOROOT)/bin:$(PATH)
#export GOCACHE=off
ALL_GO_SOURCES=$(shell /bin/sh -c "find *.go | grep -v _test.go")
default: webstory
apimgr: fmt
@go test -v apimgr.go apimgr_test.go
filename: fmt
@echo "\033[92mTest filename methods ...\033[0m"
@go test -v $(ALL_GO_SOURCES) filename_test.go
webstory: fmt
@echo "\033[92mTest Getting web story ...\033[0m"
@go test -v $(ALL_GO_SOURCES) webstory_test.go isurl_test.go
userstory: fmt
@echo "\033[92mTest Getting user unexpired stories ...\033[0m"
@go test -v $(ALL_GO_SOURCES) userstory_test.go
storyhighlights: fmt
@echo "\033[92mTest Getting Story Highlights ...\033[0m"
@go test -v $(ALL_GO_SOURCES) userstoryhighlight_test.go
follow: fmt
@echo "\033[92mTest following and followers ...\033[0m"
@go test -v $(ALL_GO_SOURCES) follow_test.go
userinfo: fmt
@#echo "\033[92mTest user info from .../username/?__a=1 ...\033[0m"
@echo "\033[92mTest user info from html embedded json ...\033[0m"
@go test -v $(ALL_GO_SOURCES) userinfo_test.go
userinfo2: fmt
@echo "\033[92mTest user info from private api ...\033[0m"
@go test -v $(ALL_GO_SOURCES) userinfo2_test.go
getall: fmt
@echo "\033[92mTest user info *get all* features ...\033[0m"
@go test -v $(ALL_GO_SOURCES) getall_test.go
getallnologin:
@echo "\033[92mTest Getting codes of all user posts no login ...\033[0m"
@go test -v $(ALL_GO_SOURCES) getallnologin_test.go
postlive: fmt
@echo "\033[92mTest Post Live Data in Reels Tray Feed ...\033[0m"
@go test -v $(ALL_GO_SOURCES) typepostlive_test.go
timeline: fmt
@echo "\033[92mTest Timeline Feed ...\033[0m"
@go test -v $(ALL_GO_SOURCES) timeline_test.go
userreelmedia: fmt
@echo "\033[92mTest User Reel Media Feed ...\033[0m"
@go test -v $(ALL_GO_SOURCES) userreelmedia_test.go
reelstray: fmt
@echo "\033[92mTest Reels Tray Feed ...\033[0m"
@go test -v $(ALL_GO_SOURCES) reelstray_test.go
reelsmedia: fmt
@echo "\033[92mTest Reels Media Feed ...\033[0m"
@go test -v $(ALL_GO_SOURCES) reelsmedia_test.go
toplive: fmt
@echo "\033[92mTest top live API...\033[0m"
@go test -v $(ALL_GO_SOURCES) toplive_test.go
post: fmt
@echo "\033[92mTest getting post information (GraphQL)...\033[0m"
@go test -v $(ALL_GO_SOURCES) post_test.go
media: fmt
@echo "\033[92mTest getting post information (API endpoint)...\033[0m"
@go test -v $(ALL_GO_SOURCES) media_test.go
saved: fmt
@echo "\033[92mTest getting saved posts ...\033[0m"
@go test -v $(ALL_GO_SOURCES) saved_test.go
topsearch: fmt
@echo "\033[92mTest Topsearch on web interface...\033[0m"
@go test -v $(ALL_GO_SOURCES) topsearch_test.go
test: fmt
@echo "\033[92mTest ...\033[0m"
@go test -v
fmt:
@echo "\033[92mGo fmt source code...\033[0m"
@go fmt *.go
modinit:
go mod init github.com/siongui/instago
modtidy:
#go list -m all
go mod tidy