aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorGuilhem Moulin <guilhem@fripost.org>2021-02-21 02:55:46 +0100
committerGuilhem Moulin <guilhem@fripost.org>2021-02-21 03:00:48 +0100
commit626c0418b3d8c3747a7be8e2620d7c85a8c2c613 (patch)
treed4b148cbd5b143238448eab1346a9cd603299f31 /Makefile
parent74c0a11722cf1e01b9a9834e89a07b55eaf01080 (diff)
Make the ACME API server URL configurable at build time.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 5 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a4caff0..16ac04e 100644
--- a/Makefile
+++ b/Makefile
@@ -49,6 +49,8 @@ lacme_www_group ?= www-data
lacme_client_user ?= nobody
lacme_client_group ?= nogroup
+acmeapi_server ?= https://acme-v02.api.letsencrypt.org/directory
+
$(BUILDDIR)/%: %
mkdir -pv -- $(dir $@)
cp --no-dereference --preserve=mode,links,xattr -vfT -- "$<" "$@"
@@ -62,8 +64,9 @@ $(BUILDDIR)/%: %
s#@@lacme_www_user@@#$(lacme_www_user)#g; \
s#@@lacme_www_group@@#$(lacme_www_group)#g; \
s#@@lacme_client_user@@#$(lacme_client_user)#g; \
- s#@@lacme_client_group@@#$(lacme_client_group)#g;" \
- -- "$@"
+ s#@@lacme_client_group@@#$(lacme_client_group)#g; \
+ s#@@acmeapi_server@@#$(acmeapi_server)#g; \
+ " -- "$@"
release:
@if ! git diff HEAD --quiet -- ./Changelog ./lacme ./lacme-accountd ./client; then \