From 93f7ffa308852305664fff272cdf67d47870d07c Mon Sep 17 00:00:00 2001
From: Dominik George <dominik.george@teckids.org>
Date: Thu, 3 Dec 2020 01:31:44 +0100
Subject: [PATCH] Add make po

---
 Makefile | 9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index e6381a4e..8003200c 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,8 @@
 PY?=python3
 PELICAN?=pelican
 PELICANOPTS=
+PO4A?=po4a
+PO4A_CONF?=po4a.conf
 
 BASEDIR=$(CURDIR)
 INPUTDIR=$(BASEDIR)/content
@@ -30,8 +32,7 @@ help:
 	@echo '   make serve [PORT=8000]              serve site at http://localhost:8000'
 	@echo '   make serve-global [SERVER=0.0.0.0]  serve (as root) to $(SERVER):80    '
 	@echo '   make devserver [PORT=8000]          serve and regenerate together      '
-	@echo '   make ssh_upload                     upload the web site via SSH        '
-	@echo '   make rsync_upload                   upload the web site via rsync+ssh  '
+	@echo '   make po                             update translations using po4a     '
 	@echo '                                                                          '
 	@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html   '
 	@echo 'Set the RELATIVE variable to 1 to enable relative urls                    '
@@ -71,5 +72,7 @@ endif
 publish:
 	$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS)
 
+po:
+	$(PO4A) $(PO4A_CONF)
 
-.PHONY: html help clean regenerate serve serve-global devserver stopserver publish
+.PHONY: html help clean regenerate serve serve-global devserver publish po
-- 
GitLab