modify Makefile flows (#93)

pull/101/head
Dan Joseph 2021-06-11 16:57:07 -04:00 zatwierdzone przez GitHub
rodzic 6e7379df16
commit de3f0409c6
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 12 dodań i 3 usunięć

Wyświetl plik

@ -14,13 +14,20 @@ help:
.PHONY: help Makefile
# this will update `arguments.rst` to match arguments in the ODM code
autogenerate:
python scripts/extract_odm_strings.py https://raw.githubusercontent.com/OpenDroneMap/ODM/master/opendm/config.py scripts/arguments.template.rst source/arguments.rst
livehtml: autogenerate
update: autogenerate
sphinx-build -b gettext source source/locale/en/pot
tx push --source
tx pull --use-git-timestamps -l "sw,ar,es,fr,te,fil"
make allerr
livehtml:
sphinx-autobuild --open-browser -H 0.0.0.0 -b html "$(SOURCEDIR)" "$(BUILDDIR)"
deploy: autogenerate
deploy:
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html" -nW
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html/sw" -D language='sw' -nW
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html/ar" -D language='ar' -nW
@ -32,6 +39,8 @@ deploy: autogenerate
# -W Turn warnings into errors that stop the build.
# for more details about the options see https://www.sphinx-doc.org/en/1.8/man/sphinx-build.html#options
# `allerr` runs without nit-picky mode, so that an error doesn't halt the build
# it will log all errors that need to be fixed in the translations (generally syntax errors)
allerr:
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html"
@$(SPHINXBUILD) -b html "$(SOURCEDIR)" "$(BUILDDIR)/html/sw" -D language='sw'