-
Notifications
You must be signed in to change notification settings - Fork 103
/
Makefile
42 lines (28 loc) · 1.04 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
clean: clean-infra clean-cli
rm -rf scripts/packaging/node_modules
clean-infra:
cd infra && npm run clean && rm -rf cdk.out
clean-cli:
cd cli && npm run clean
build-infra:
cd infra && npm ci && npm run build
build-cli:
cd cli && npm ci && npm run build
build-nodejs:
cd lib/nodejs && npm ci && npm run release -ws
build-python-rust:
cd lib/rust/detection_lib && $(MAKE) release
build-python: build-python-rust
rm -rf local-assets/MatanoDetectionsCommonLayer && cd lib/python/matano_detection && $(MAKE) release
build-rust:
cd lib/rust && PYO3_CROSS_PYTHON_VERSION=3.9 cargo lambda build --target x86_64-unknown-linux-gnu.2.26 --release --workspace && \
mkdir -p ${CURDIR}/local-assets && \
cp -a target/lambda/* ${CURDIR}/local-assets
build-jvm:
cd lib/java/matano && ./gradlew release
build-assets: build-python build-rust build-jvm
build-all: build-cli build-infra build-assets
package: build-all
cd scripts/packaging && npm install && cd ${CURDIR} && node scripts/packaging/build.js
local-install: build-cli
cd cli && npm run full-install