From 75f69aa7c19e1e29580bb0e4d62feb948ccdba18 Mon Sep 17 00:00:00 2001 From: Erich Eckner Date: Thu, 29 Aug 2019 11:30:11 +0200 Subject: cb stuff done --- Makefile | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) (limited to 'Makefile') 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' '\|')\)\$$" | \ -- cgit v1.2.3-70-g09d2