27 lines
739 B
Makefile
27 lines
739 B
Makefile
# Copyright (C) 2018 Luke Shumaker
|
|
# Copyright (C) 2023-2024 Umorpha Systems
|
|
# SPDX-License-Identifier: AGPL-3.0-or-later
|
|
|
|
shell_programs = bin/osi-mk
|
|
shell_programs += bin/osi-shell
|
|
shell_programs += bin/osi-mount
|
|
shell_programs += bin/osi-extract
|
|
|
|
python_programs = lib/pacman-choices
|
|
|
|
lint:
|
|
git ls-files ':*.sh' $(shell_programs) |xargs shellcheck --exclude=SC2064 --
|
|
MYPYPATH=$$PWD/mypy-stubs mypy --strict $(python_programs)
|
|
black --check $(python_programs) mypy-stubs
|
|
isort --check $(python_programs) mypy-stubs
|
|
.PHONY: lint
|
|
|
|
generate/files = COPYING.txt
|
|
COPYING.txt:
|
|
curl https://www.gnu.org/licenses/agpl-3.0.txt >$@
|
|
|
|
generate: $(generate/files)
|
|
generate-clean:
|
|
rm -f -- $(generate/files)
|
|
.PHONY: generate generate-clean
|