summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2019-08-29 11:30:11 +0200
committerErich Eckner <git@eckner.net>2019-08-29 11:30:11 +0200
commit75f69aa7c19e1e29580bb0e4d62feb948ccdba18 (patch)
tree50c1948fb3e8b6717e255280fc3c3fe9913ba605 /Makefile
parent1e1958704f12494a7dc60af5f7cf6d1fe14fd819 (diff)
downloadsimple-pki-75f69aa7c19e1e29580bb0e4d62feb948ccdba18.tar.xz
cb stuff done
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 9 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index be82bbf..c5d6633 100644
--- a/Makefile
+++ b/Makefile
@@ -27,7 +27,7 @@ MANDIR = /usr/share/man
VERSION = 0.0
-all: sign-ca sign-request sign-ca.service
+all: rotate-keys rotate-keys.service sign-ca sign-ca.service sign-request
%: %.in
sed " \
@@ -37,8 +37,9 @@ all: sign-ca sign-request sign-ca.service
s@#HELPTEXT#\(\s\+\)#@ --help \1display this help and exit\n --version\1display version and exit@; \
" $< > $@
[ "$@" = "sign-ca" ] && chmod +x "$@" || true
+ [ "$@" = "rotate-keys" ] && chmod +x "$@" || true
-.PHONY: install dist clean
+.PHONY: install-ca install-cb dist clean
install-ca:
install -D -m0755 -t $(DESTDIR)$(BINDIR) sign-ca sign-request
@@ -46,6 +47,12 @@ install-ca:
install -d -m0700 $(DESTDIR)$(ETCDIR)/simple-pki/keys
install -D -m0644 -t $(DESTDIR)$(LIBDIR)/systemd/system sign-ca.service sign-ca.timer
+install-cb:
+ install -D -m0755 -t $(DESTDIR)$(BINDIR) rotate-keys
+ install -D -m0644 -t $(DESTDIR)$(ETCDIR)/simple-pki cb.conf
+ install -d -m0700 $(DESTDIR)$(ETCDIR)/simple-pki/keys
+ install -D -m0644 -t $(DESTDIR)$(LIBDIR)/systemd/system rotate-keys.service rotate-keys.timer
+
clean:
ls -A | \
grep "^\($(shell sed 's|\.|\\.|; s|\*|.*|; s|$$|\\|' .gitignore | tr '\n' '\|')\)\$$" | \