forked from cloudquery/cloudquery
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (34 loc) · 951 Bytes
/
Makefile
File metadata and controls
42 lines (34 loc) · 951 Bytes
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
42
# Build all
.PHONY: build
build:
./scripts/build.sh
.PHONY: build-changed
build-changed:
./scripts/build.sh -c
.PHONY: build-cli
build-cli:
(cd cli && go build -o ../bin/cloudquery .)
# Test unit
.PHONY: test-unit
test-unit:
./scripts/test-unit.sh
# Test unit (only changed files)
test-unit-changed:
./scripts/test-unit.sh -c
# Install tools
.PHONY: install-tools
install-tools:
@echo Installing tools from tools/tool.go
@cat tools/tool.go | grep _ | awk -F'"' '{print $$2}' | xargs sh -c 'for arg do echo "Installing $$arg"; go get "$$arg"; go install "$$arg"; done' _
# Install pre-commit hooks. This requires pre-commit to be installed (https://pre-commit.com/)
.PHONY: install-hooks
install-hooks:
pre-commit install
# Regenerate docs for all plugins
.PHONY: update-docs
update-docs:
./scripts/update-docs.sh
# Update plugin-sdk for all plugins and cli
.PHONY: update-plugin-sdk
update-plugin-sdk:
./scripts/update-plugin-sdk.sh