summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile22
1 files changed, 22 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index d99b3d7..7988ecd 100644
--- a/Makefile
+++ b/Makefile
@@ -1,3 +1,5 @@
+V=20150216
+
export LANG=C
export SHELL=/bin/bash
@@ -13,8 +15,28 @@ users = $(call dep_dir,users)
all: PHONY pacman-keyring postfix-virtual-map
+PREFIX = /usr/local
+
+install:
+ install -dm755 $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
+ install -m0644 parabola{.gpg,-trusted,-revoked} $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
+
+uninstall:
+ rm -f $(DESTDIR)$(PREFIX)/share/pacman/keyrings/parabola{.gpg,-trusted,-revoked}
+ rmdir -p --ignore-fail-on-non-empty $(DESTDIR)$(PREFIX)/share/pacman/keyrings/
+
+dist:
+ cp -rv output/pacman-keyring output/parabola-keyring-$(V)/
+ cp -v Makefile output/parabola-keyring-$(V)/
+ bsdtar czf output/parabola-keyring-$(V).tar.gz -C output parabola-keyring-$(V)/
+ gpg --detach-sign --use-agent output/parabola-keyring-$(V).tar.gz
+
+upload:
+ scp output/parabola-keyring-$(V).tar.gz output/parabola-keyring-$(V).tar.gz.sig parabola:/srv/repo/main/other/parabola-keyring
+
clean: PHONY
rm -rf output/cache
+
distclean: PHONY
rm -rf output