diff options
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 11 |
1 files changed, 9 insertions, 2 deletions
@@ -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' '\|')\)\$$" | \ |