Skip to content

Commit

Permalink
Makefile: add a scan-build target
Browse files Browse the repository at this point in the history
  • Loading branch information
elric1 committed Sep 27, 2023
1 parent 8b7fc0c commit 5f9258e
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,17 @@ docker_images: docker_speculos \
docker_ledger_app_ocaml \
docker_ledger_app_integration_tests

scan-build-%:
if [ -d "$(BOLOS_SDK)" ]; then \
make -C app scan-build; \
else \
$(DOCKER_RUN_APP_BUILDER) bash -c \
"BOLOS_SDK=/opt/nanos-secure-sdk make -C app scan-build"; \
fi

scan-build: scan-build-nanos scan-build-nanosp \
scan-build-nanox scan-build-stax

app_%.tgz: app/src/*.[ch] \
app/src/parser/*.[ch] \
app/Makefile
Expand Down

0 comments on commit 5f9258e

Please sign in to comment.