forked from Velocidex/velociraptor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
61 lines (43 loc) · 1.25 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
all:
go run make.go -v autoDev
auto:
go run make.go -v auto
test:
go test -v --tags server_vql ./...
golden:
./output/velociraptor -v --config artifacts/testdata/windows/test.config.yaml golden artifacts/testdata/server/testcases/ --env srcDir=`pwd` --filter=
references:
./output/velociraptor vql export docs/references/vql.yaml > docs/references/vql.yaml.tmp
mv docs/references/vql.yaml.tmp docs/references/vql.yaml
release:
go run make.go -v release
# Basic darwin binary - no yara.
darwin:
go run make.go -v DarwinBase
linux:
go run make.go -v linux
freebsd:
go run make.go -v freebsd
windows:
go run make.go -v windowsDev
windowsx86:
go run make.go -v windowsx86
clean:
go run make.go -v clean
generate:
go generate ./vql/windows/
go generate ./api/mock/
check:
staticcheck ./...
build_docker:
echo Building the initial docker container.
docker build --tag velo_builder docker
build_release: build_docker
echo Building release into output directory.
docker run --rm -v `pwd`:/build/ -u `id -u`:`id -g` -e HOME=/tmp/ velo_builder
debug:
dlv debug --wd=. --build-flags="-tags 'server_vql extras'" ./bin/ -- frontend -v --debug
debug_client:
dlv debug --build-flags="-tags 'server_vql extras'" ./bin/ -- client -v
lint:
golangci-lint run