diff options
author | Erich Eckner <git@eckner.net> | 2019-08-29 11:30:11 +0200 |
---|---|---|
committer | Erich Eckner <git@eckner.net> | 2019-08-29 11:30:11 +0200 |
commit | 75f69aa7c19e1e29580bb0e4d62feb948ccdba18 (patch) | |
tree | 50c1948fb3e8b6717e255280fc3c3fe9913ba605 /Makefile | |
parent | 1e1958704f12494a7dc60af5f7cf6d1fe14fd819 (diff) | |
download | simple-pki-75f69aa7c19e1e29580bb0e4d62feb948ccdba18.tar.xz |
cb stuff done
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' '\|')\)\$$" | \ |