From 16b02af06797e1664cd54af54bfc66392892a938 Mon Sep 17 00:00:00 2001 From: Nick Spinale Date: Tue, 24 Oct 2023 10:59:22 +0000 Subject: [PATCH] Add check-licenses target to Makefile Signed-off-by: Nick Spinale --- Makefile | 15 +++++++++++---- hacking/nix/scope/shell.nix | 2 ++ 2 files changed, 13 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 5845372b8..b698a21c9 100644 --- a/Makefile +++ b/Makefile @@ -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) && \ @@ -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 diff --git a/hacking/nix/scope/shell.nix b/hacking/nix/scope/shell.nix index d21a67291..99a60bda1 100644 --- a/hacking/nix/scope/shell.nix +++ b/hacking/nix/scope/shell.nix @@ -11,6 +11,7 @@ , pkgconfig, openssl , cmake, perl, python3Packages , rustPlatform +, reuse , cargo-audit }: @@ -25,6 +26,7 @@ mkShell { perl python3Packages.jsonschema python3Packages.jinja2 + reuse cargo-audit ];