aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-16 16:18:16 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-18 00:40:53 +0100
commita8bc34b6ff5eccabef7420d5d5deeb8e1a9e2816 (patch)
tree9177b064a70dc81999696620d2552fb64dfe9689 /Makefile
parentdb34a391d745bd3f94fbc3bba1cc8743a8831202 (diff)
Add certs-staging/fake*.pem for tests using the staging environment.
See https://letsencrypt.org/docs/staging-environment/ .
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 11 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index 3c8c6bc..c37c45b 100644
--- a/Makefile
+++ b/Makefile
@@ -2,7 +2,9 @@ DESTDIR ?= /usr/local
BUILDDIR ?= ./build
MANUAL_FILES = $(addprefix $(BUILDDIR)/,$(patsubst ./%.md,%,$(wildcard ./*.[1-9].md)))
-all: manual $(addprefix $(BUILDDIR)/,lacme lacme-accountd client webserver $(wildcard certs/* config/* snippets/*) certs/ca-certificates.crt)
+all: manual $(addprefix $(BUILDDIR)/,lacme lacme-accountd client webserver \
+ $(wildcard certs/* config/* snippets/*) \
+ certs/ca-certificates.crt certs-staging/ca-certificates.crt)
doc: manual
manual: $(MANUAL_FILES)
@@ -17,7 +19,14 @@ $(BUILDDIR)/certs/ca-certificates.crt: \
certs/isrg-root-x2.pem \
certs/lets-encrypt-r[34].pem \
certs/lets-encrypt-e[12].pem
- mkdir -pv -- $(BUILDDIR)/certs
+ mkdir -pv -- $(dir $@)
+ cat -- $^ >$@
+
+# Staging Environment for tests, see https://letsencrypt.org/docs/staging-environment/
+$(BUILDDIR)/certs-staging/ca-certificates.crt: \
+ certs-staging/fakelerootx1.pem \
+ certs-staging/fakeleintermediatex1.pem
+ mkdir -pv -- $(dir $@)
cat -- $^ >$@
prefix ?= $(DESTDIR)