summaryrefslogtreecommitdiff
path: root/Makefile
blob: 73403ab7fe0b408664accc782b24419693190ada (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
PREFIX = /usr/local
V=$(shell git describe --exact-match)

install:
	install -dm755 $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
	install -m0644 archlinuxewe{.gpg,-trusted,-revoked} $(DESTDIR)$(PREFIX)/share/pacman/keyrings/

uninstall:
	rm -f $(DESTDIR)$(PREFIX)/share/pacman/keyrings/archlinuxewe{.gpg,-trusted,-revoked}
	rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/pacman/keyrings/

dist:
	git archive --format=tar --prefix=archlinuxewe-keyring-$(V)/ $(V) | gzip -9 > archlinuxewe-keyring-$(V).tar.gz
	gpg --detach-sign --use-agent archlinuxewe-keyring-$(V).tar.gz

upload:
	scp archlinuxewe-keyring-$(V).tar.gz archlinuxewe-keyring-$(V).tar.gz.sig archlinuxewe@eckner.net:

.PHONY: install uninstall dist upload