License commands.
This directory contains make
rules for managing project licenses, including those of project dependencies.
Usage: make <command> [<ENV_VAR>=<value> <ENV_VAR>=<value> ...]
Checks the license for each package dependency against a list of permitted licenses.
$ make check-licenses
Checks the license for each "production" (i.e., non-development) package dependency against a list of permitted licenses.
$ make check-licenses-production
Removes file license headers.
$ make remove-license-headers
The command supports the following environment variables:
- FILES_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*
. - FILES_PATTERN: filename pattern; e.g.,
*.js
.
Inserts file license headers.
$ make insert-license-headers
The command supports the following environment variables:
- FILES_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*
. - FILES_PATTERN: filename pattern; e.g.,
*.js
.
Updates file license headers.
$ make update-license-headers
The command supports the following environment variables:
- FILES_FILTER: file path pattern; e.g.,
.*/blas/base/dasum/.*
. - FILES_PATTERN: filename pattern; e.g.,
*.js
.
Lists the license for each package dependency in the package dependency tree.
$ make list-licenses
Groups the licenses of package dependencies by license type.
$ make list-licenses-group
Lists the license for each root package dependency.
$ make list-deps-licenses
Lists package dependencies missing license information.
$ make list-missing-licenses
Lists package dependencies having ambiguous license information (e.g., conflicting or unknown licenses).
$ make list-ambiguous-licenses
Lists package dependencies having excluded license information (as determined by a license whitelist).
$ make list-excluded-licenses
Prints a summary of package dependency license information.
$ make list-licenses-summary