-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile
23 lines (19 loc) · 746 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
# 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 GOPATH=$(realpath .)
export PATH := $(GOROOT)/bin:$(GOPATH)/bin:$(PATH)
test: fmt
@echo "\033[92mTest ...\033[0m"
@go test -v
fmt:
@echo "\033[92mGo fmt source code...\033[0m"
@go fmt *.go
install:
@echo "\033[92mInstalling goquery ...\033[0m"
go get -u github.com/PuerkitoBio/goquery
@echo "\033[92mInstalling github.com/ghodss/yaml ...\033[0m"
go get -u github.com/ghodss/yaml
@echo "\033[92mInstalling github.com/siongui/responsive-embed-generator ...\033[0m"
go get -u github.com/siongui/responsive-embed-generator