condorcore-keyring/Makefile

36 lines
768 B
Makefile
Raw Normal View History

PREFIX ?= /usr/local
KEYRING_TARGET_DIR=$(DESTDIR)$(PREFIX)/share/pacman/keyrings/
KEYRING_FILES=$(wildcard build/*.gpg) $(wildcard build/*-revoked) $(wildcard build/*-trusted)
2012-02-13 07:37:52 -06:00
all: build
2012-02-13 07:37:52 -06:00
lint:
black --check --diff keyringctl libkeyringctl tests
isort --diff .
flake8 keyringctl libkeyringctl tests
mypy --install-types --non-interactive keyringctl libkeyringctl tests
2012-02-13 07:37:52 -06:00
fmt:
black .
isort .
check:
./keyringctl -v check
test:
coverage run
coverage report
coverage xml
build:
./keyringctl -v build
2012-02-13 07:37:52 -06:00
install:
install -vDm 755 $(KEYRING_FILES) -t $(KEYRING_TARGET_DIR)
2012-02-13 07:37:52 -06: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
.PHONY: all lint fmt test build install uninstall