2018-05-07 05:32:18 -05:00
|
|
|
-include local/Makefile
|
|
|
|
|
2016-04-25 11:44:26 -05:00
|
|
|
all: deps build
|
|
|
|
|
2016-10-11 01:51:44 -05:00
|
|
|
deps-go:
|
2016-04-25 11:44:26 -05:00
|
|
|
go run build.go setup
|
2016-10-11 01:51:44 -05:00
|
|
|
|
2018-10-29 05:08:30 -05:00
|
|
|
deps-js: node_modules
|
2016-04-25 11:44:26 -05:00
|
|
|
|
2017-02-16 02:10:55 -06:00
|
|
|
deps: deps-js
|
2016-10-11 01:51:44 -05:00
|
|
|
|
|
|
|
build-go:
|
2016-04-25 11:44:26 -05:00
|
|
|
go run build.go build
|
2016-10-11 01:51:44 -05:00
|
|
|
|
2018-03-06 16:59:45 -06:00
|
|
|
build-server:
|
|
|
|
go run build.go build-server
|
|
|
|
|
|
|
|
build-cli:
|
|
|
|
go run build.go build-cli
|
|
|
|
|
2016-10-11 01:51:44 -05:00
|
|
|
build-js:
|
2018-03-06 16:59:45 -06:00
|
|
|
yarn run build
|
2016-04-25 11:44:26 -05:00
|
|
|
|
2016-10-11 01:51:44 -05:00
|
|
|
build: build-go build-js
|
|
|
|
|
2018-08-02 10:42:28 -05:00
|
|
|
build-docker-dev:
|
|
|
|
@echo "\033[92mInfo:\033[0m the frontend code is expected to be built already."
|
2018-11-15 07:42:09 -06:00
|
|
|
go run build.go -goos linux -pkg-arch amd64 ${OPT} build pkg-archive latest
|
2018-08-02 10:42:28 -05:00
|
|
|
cp dist/grafana-latest.linux-x64.tar.gz packaging/docker
|
|
|
|
cd packaging/docker && docker build --tag grafana/grafana:dev .
|
|
|
|
|
2018-04-20 13:28:52 -05:00
|
|
|
build-docker-full:
|
|
|
|
docker build --tag grafana/grafana:dev .
|
|
|
|
|
2016-10-11 01:51:44 -05:00
|
|
|
test-go:
|
2016-09-15 06:02:16 -05:00
|
|
|
go test -v ./pkg/...
|
2016-10-11 01:51:44 -05:00
|
|
|
|
|
|
|
test-js:
|
2018-03-06 16:59:45 -06:00
|
|
|
yarn test
|
2016-04-25 11:44:26 -05:00
|
|
|
|
2016-10-11 01:51:44 -05:00
|
|
|
test: test-go test-js
|
|
|
|
|
2016-04-25 11:44:26 -05:00
|
|
|
run:
|
|
|
|
./bin/grafana-server
|
2018-10-29 05:08:30 -05:00
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf node_modules
|
|
|
|
rm -rf public/build
|
|
|
|
|
|
|
|
node_modules: package.json yarn.lock
|
|
|
|
yarn install --pure-lockfile --no-progress
|