-
Notifications
You must be signed in to change notification settings - Fork 10
/
Makefile
41 lines (27 loc) · 899 Bytes
/
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
all: clean
# See https://www.gnu.org/software/make/manual/make.html
clean:
rm -fr dist
dist/runtime-packages: runtime-packages/main.go runtime-packages/go.mod runtime-packages/discover.py
@go build -o dist/runtime-packages runtime-packages/main.go
@echo "Building runtime-packages"
dist/metascan: $(wildcard metascan/*.go) $(wildcard metascan/internal/*.go) $(wildcard metascan/cmd/*.go)
@go build -o dist/metascan metascan/main.go
@echo "Building metascan"
dist: dist/runtime-packages dist/metascan
.venv/bin/python:
python3.10 -m venv .venv
dev: .venv/bin/python
.venv/bin/python -m pip install .
test-go-libs:
cd go-libs && make test
test-acceptance:
cd acceptance && make test
test: test-acceptance test-go-libs
fmt-go-libs:
cd go-libs && make fmt
fmt-acceptance:
cd acceptance && make fmt
fmt-llnotes:
cd llnotes && make fmt
fmt: fmt-acceptance fmt-go-libs fmt-llnotes