Skip to content
Snippets Groups Projects
Verified Commit 93f7ffa3 authored by Nik | Klampfradler's avatar Nik | Klampfradler
Browse files

Add make po

parent 92bdcac0
No related branches found
No related tags found
No related merge requests found
Pipeline #4877 passed
PY?=python3 PY?=python3
PELICAN?=pelican PELICAN?=pelican
PELICANOPTS= PELICANOPTS=
PO4A?=po4a
PO4A_CONF?=po4a.conf
BASEDIR=$(CURDIR) BASEDIR=$(CURDIR)
INPUTDIR=$(BASEDIR)/content INPUTDIR=$(BASEDIR)/content
...@@ -30,8 +32,7 @@ help: ...@@ -30,8 +32,7 @@ help:
@echo ' make serve [PORT=8000] serve site at http://localhost:8000' @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 serve-global [SERVER=0.0.0.0] serve (as root) to $(SERVER):80 '
@echo ' make devserver [PORT=8000] serve and regenerate together ' @echo ' make devserver [PORT=8000] serve and regenerate together '
@echo ' make ssh_upload upload the web site via SSH ' @echo ' make po update translations using po4a '
@echo ' make rsync_upload upload the web site via rsync+ssh '
@echo ' ' @echo ' '
@echo 'Set the DEBUG variable to 1 to enable debugging, e.g. make DEBUG=1 html ' @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 ' @echo 'Set the RELATIVE variable to 1 to enable relative urls '
...@@ -71,5 +72,7 @@ endif ...@@ -71,5 +72,7 @@ endif
publish: publish:
$(PELICAN) $(INPUTDIR) -o $(OUTPUTDIR) -s $(PUBLISHCONF) $(PELICANOPTS) $(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
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment