2021-10-16 17:41:17 -05:00
|
|
|
PREFIX ?= /usr/local
|
|
|
|
KEYRING_TARGET_DIR=$(DESTDIR)$(PREFIX)/share/pacman/keyrings/
|
2021-10-19 18:41:04 -05:00
|
|
|
KEYRING_FILES=$(wildcard keyring/output/*.gpg) $(wildcard keyring/output/*-revoked) $(wildcard keyring/output/*-trusted)
|
2012-02-13 07:37:52 -06:00
|
|
|
|
2021-10-16 17:41:17 -05:00
|
|
|
all: build
|
2012-02-13 07:37:52 -06:00
|
|
|
|
2021-10-16 17:41:17 -05:00
|
|
|
lint:
|
|
|
|
black --check --diff keyringctl
|
|
|
|
isort --diff .
|
|
|
|
flake8 keyringctl
|
|
|
|
mypy --install-types --non-interactive keyringctl
|
2012-02-13 07:37:52 -06:00
|
|
|
|
2021-10-16 17:41:17 -05:00
|
|
|
build:
|
|
|
|
./keyringctl -v export-keyring
|
2012-02-13 07:37:52 -06:00
|
|
|
|
2021-10-16 17:41:17 -05:00
|
|
|
install:
|
|
|
|
install -vDm 755 $(KEYRING_FILES) -t $(KEYRING_TARGET_DIR)
|
2012-02-13 07:37:52 -06:00
|
|
|
|
2021-10-16 17:41:17 -05:00
|
|
|
uninstall:
|
|
|
|
rm -f $(KEYRING_TARGET_DIR)/archlinux{.gpg,-trusted,-revoked}
|
|
|
|
rmdir -p --ignore-fail-on-non-empty $(KEYRING_TARGET_DIR)
|
2012-02-13 07:37:52 -06:00
|
|
|
|
2021-10-16 17:41:17 -05:00
|
|
|
.PHONY: build install lint uninstall
|