diff options
author | neodarz <neodarz@neodarz.net> | 2020-06-20 13:25:07 +0200 |
---|---|---|
committer | neodarz <neodarz@neodarz.net> | 2020-06-26 21:01:01 +0200 |
commit | 3d48f4b17362d5141f04dc78d4aef55d84c02630 (patch) | |
tree | 93fedfbbae77da91ae73c109829f069c96c613f3 /Makefile | |
download | website-3d48f4b17362d5141f04dc78d4aef55d84c02630.tar.xz website-3d48f4b17362d5141f04dc78d4aef55d84c02630.zip |
Initial commit
Diffstat (limited to 'Makefile')
-rwxr-xr-x | Makefile | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100755 index 0000000..cf6cda5 --- /dev/null +++ b/Makefile @@ -0,0 +1,31 @@ +# Minimal makefile for Sphinx documentation +# + +# You can set these variables from the command line, and also +# from the environment for the first two. +SPHINXOPTS ?= +SPHINXBUILD ?= sphinx-build +SOURCEDIR = src +BUILDDIR = build + +# Put it first so that "make" without argument is like "make help". +help: + @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +.PHONY: help Makefile + +# Catch-all target: route all unknown targets to Sphinx using the new +# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). +%: Makefile + @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + +locale: + make gettext + cd $(SOURCEDIR); sphinx-intl update -p ../$(BUILDDIR)/gettext -l fr; cd .. + +trad: + sphinx-build -b html -D language=fr $(SOURCEDIR) $(BUILDDIR)/html/fr + sphinx-build -b html -D language=en $(SOURCEDIR) $(BUILDDIR)/html/en + cp $(SOURCEDIR)/sitemap.xml $(BUILDDIR)/html + cp $(SOURCEDIR)/robots.txt $(BUILDDIR)/html + cp $(SOURCEDIR)/index.html $(BUILDDIR)/html |