forked from jimywork/confwatchd
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
41 lines (31 loc) · 837 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
34
35
36
37
38
39
40
41
.PHONY: build fmt lint run test vet deps install
SRC_PATH=.
TARGET=confwatchd
default: build
build: deps
@go build $(FLAGS) -o $(TARGET) $(SRC_PATH)
vet:
@go vet $(SRC_PATH)
fmt:
@go fmt $(SRC_PATH)/...
lint:
@golint $(SRC_PATH)
test:
@go test $(SRC_PATH)/...
clean:
@rm -rf $(TARGET)
deps:
@go get github.com/gin-gonic/gin
@go get github.com/jinzhu/gorm
@go get github.com/jinzhu/gorm/dialects/sqlite
@go get gopkg.in/unrolled/secure.v1
@go get github.com/gosimple/slug
@go get github.com/gin-gonic/autotls
@go get github.com/michelloworld/ez-gin-template
@go get github.com/pariz/gountries
@go get github.com/patrickmn/go-cache
@go get github.com/dghubble/go-twitter/twitter
@go get github.com/dghubble/oauth1
@go get github.com/dustin/go-humanize
setcap:
@sudo setcap 'cap_net_bind_service=+ep' $(TARGET)