Skip to content

Commit

Permalink
Add check-licenses target to Makefile
Browse files Browse the repository at this point in the history
Signed-off-by: Nick Spinale <[email protected]>
  • Loading branch information
nspin committed Oct 24, 2023
1 parent 01d3509 commit 16b02af
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
15 changes: 11 additions & 4 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,10 @@ check-generic-formatting:
.PHONY: check-source
check-source: check-generated-sources check-fmt check-generic-formatting

.PHONY: check-licenses
check-licenses:
$(nix_shell) --run "reuse lint"

.PHONY: check-dependencies
check-dependencies:
lockfile=$$($(nix_build) -A pkgs.build.this.publicCratesCargoLock --no-out-link) && \
Expand Down Expand Up @@ -140,17 +144,20 @@ example:
example-rpi4-b-4gb:
$(nix_build) -A $@ -o $(out)/$@

.PHONY: check-fast
check-fast: check-source check-dependencies
.PHONY: check-immediately
check-immediately: check-source check-licenses check-dependencies

.PHONY: check-quickly
check-quickly: check-immediately
$(MAKE) witness-fast-tests
$(MAKE) everything-except-non-incremental

.PHONY: check-exhaustively
check-exhaustively: check-source check-dependencies
check-exhaustively: check-immediately
$(MAKE) witness-tests
$(MAKE) everything-with-excess

.PHONY: check-oneshot
check-oneshot: check-source check-dependencies
check-oneshot: check-immediately
$(MAKE) run-tests
$(MAKE) everything-with-excess
2 changes: 2 additions & 0 deletions hacking/nix/scope/shell.nix
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
, pkgconfig, openssl
, cmake, perl, python3Packages
, rustPlatform
, reuse
, cargo-audit
}:

Expand All @@ -25,6 +26,7 @@ mkShell {
perl
python3Packages.jsonschema
python3Packages.jinja2
reuse
cargo-audit
];

Expand Down

0 comments on commit 16b02af

Please sign in to comment.