-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
38 lines (26 loc) · 1.06 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
all: generate
fmt: ## Formats code
go fmt ./...
install-deps: ## Install dependencies
go get golang.org/x/tools/cmd/goimports
go get -u github.com/knq/xo
go get github.com/erning/gorun
go get github.com/jteeuwen/go-bindata/...
go get github.com/elazarl/go-bindata-assetfs/...
glide-install: ## Performs glide install
glide install -v --force
logrus-fix: ## Fixes logrus
rm -fr vendor/github.com/Sirupsen
find vendor -type f -exec sed -i 's/Sirupsen/sirupsen/g' {} +
generate-nvprof-models: ## Generates Models for NVPRof
rm -fr nvprof/models
xo 'file:./_fixtures/profile.timeline.nvprof?loc=auto' -o nvprof/models
generate-assets:
go-bindata -nomemcopy -pkg assets -o pkg/assets/static.go -ignore=.DS_Store -ignore=README.md pkg/assets/builtin_models/... pkg/assets/builtin_features/...
clean-assets:
rm -fr pkg/assets/static.go
generate: generate-assets
help: ## Shows this help text
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
.PHONY: help
.DEFAULT_GOAL := generate