11PWD =$(shell pwd)
22WASM_TARGET =wasm32-unknown-unknown
3- CARGO =cargo +nightly
43GO =go
54OL_DIR =$(abspath ./src)
65OL_GO_FILES =$(shell find src/ -name '* .go')
3433all : ol imgs/lambda wasm-worker wasm-functions native-functions
3534
3635wasm-worker :
37- cd wasm-worker && ${CARGO} build ${BUILD_FLAGS} ${WASM_WORKER_FLAGS}
36+ cd wasm-worker && cargo build ${BUILD_FLAGS} ${WASM_WORKER_FLAGS}
3837 cp wasm-worker/target/${BUILDTYPE} /wasm-worker ./ol-wasm
3938
4039wasm-functions :
@@ -48,10 +47,10 @@ native-functions: imgs/lambda
4847 ls test-registry/hashing.bin test-registry/noop.bin # guarantee they were created
4948
5049update-dependencies :
51- cd lambda/runtimes/native && ${CARGO} update
52- cd wasm-worker && ${CARGO} update
53- cd bin-functions && ${CARGO} update
54- cd container-proxy && ${CARGO} update
50+ cd lambda/runtimes/native && cargo update
51+ cd wasm-worker && cargo update
52+ cd bin-functions && cargo update
53+ cd container-proxy && cargo update
5554
5655imgs/lambda : $(LAMBDA_FILES )
5756 ${MAKE} -C lambda
@@ -62,10 +61,10 @@ install-python-bindings:
6261 cd scripts && python setup.py install
6362
6463check-runtime :
65- cd lambda/runtimes/rust && ${CARGO} check
64+ cd lambda/runtimes/rust && cargo check
6665
6766container-proxy :
68- cd container-proxy && ${CARGO} build ${BUILD_FLAGS}
67+ cd container-proxy && cargo build ${BUILD_FLAGS}
6968 cp ./container-proxy/target/${BUILDTYPE} /open-lambda-container-proxy ./ol-container-proxy
7069
7170ol : $(OL_GO_FILES )
0 commit comments