Files
grafana/Makefile
T

52 lines
881 B
Makefile
Raw Normal View History

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