From 866e8857f054170baed090e156c1e529748a7ef8 Mon Sep 17 00:00:00 2001 From: "Alex A. Naanou" Date: Sat, 13 Jan 2024 10:03:29 +0300 Subject: [PATCH] experiment... Signed-off-by: Alex A. Naanou --- wireguard/templates/root/Makefile | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/wireguard/templates/root/Makefile b/wireguard/templates/root/Makefile index bb8a742..ff1366d 100644 --- a/wireguard/templates/root/Makefile +++ b/wireguard/templates/root/Makefile @@ -40,7 +40,7 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY) -e 's/\$${\SERVER_PRIVATE_KEY}/'$$(sed -e 's/\//\\\//g' "$(SERVER_KEY)")'/g' \ > "$@" -%.client: $(CLIENT_TPL) $(SERVER_CLIENT_TPL) \ +$(CLIENT_DIR)/%.conf: $(CLIENT_TPL) $(SERVER_CLIENT_TPL) \ $(CLIENT_DIR)/%_id $(CLIENT_DIR)/%_id.pub \ $(SERVER_CONF) $(SERVER_PUBLIC_KEY) @ mkdir -p $(CLIENT_DIR) @@ -67,6 +67,14 @@ $(SERVER_CONF): $(SERVER_TPL) $(SERVER_KEY) && qrencode -t UTF8 -r "$(CLIENT_DIR)/$*.conf" ) +%.client: $(CLIENT_DIR)/%.conf + + +%.qr: %.client + @ ( echo "# Profile: $*" \ + && qrencode -t UTF8 -r "$(CLIENT_DIR)/$*.conf" ) + + server: $(SERVER_CONF)