From b5cba57beac984a5509e7036ffd788b904fe8069 Mon Sep 17 00:00:00 2001 From: Simon Quigley Date: Mon, 22 Jan 2018 16:48:45 -0600 Subject: [PATCH] Add initial server Makefile stanza. --- Makefile | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/Makefile b/Makefile index b7fbf950..b006a0c3 100644 --- a/Makefile +++ b/Makefile @@ -44,6 +44,20 @@ help: @echo " coverage to run coverage check of the documentation (if enabled)" @echo " dummy to check syntax errors of document sources" +# Note, this is the build command that's executed via cron on the server +# serving manual.lubuntu.me. Be careful! +.PHONY: serverbuild +serverbuild: + # These translations are added manually when they get to the point + # where they're decent. Only add them there when that's the case! + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) -D language="pl" source ../webroot/pl.tmp/ + rm -rf ../webroot/pl/ + mv ../webroot/pl.tmp/ ../webroot/pl/ + + $(SPHINXBUILD) -b html $(ALLSPHINXOPTS) ../webroot/en/ + rm -rf ../webroot/en/ + mv ../webroot/en.tmp/ ../webroot/en/ + .PHONY: clean clean: rm -rf $(BUILDDIR)/*