| 1 |
# Creates the go libs in the go/ directory. |
| 2 |
go: |
| 3 |
protoc --go_out=../go --go_opt=module=github.com/in-toto/attestation/go $(shell find ./in_toto_attestation -name "*.proto") |
| 4 |
|
| 5 |
# Creates the python libs in the python/ directory. |
| 6 |
python: |
| 7 |
protoc --python_out=../python $(shell find ./in_toto_attestation -name "*.proto") |
| 8 |
make -C ../python reformat |
| 9 |
|
| 10 |
# Creates the java libs in the java/ directory. |
| 11 |
java: |
| 12 |
protoc --java_out=../java $(shell find ./in_toto_attestation -name "*.proto") |
| 13 |
|
| 14 |
# Creates the Rust libs in the rust/ directory. |
| 15 |
rust: |
| 16 |
cd ../rust && cargo build --release |
| 17 |
|
| 18 |
.PHONY: go python java rust |