Merge pull request #85073 from Rindbee/fix-wrong-path-when-make-rst

Fix translation po file not found when `make rst LANGARG=zh_CN`
This commit is contained in:
Rémi Verschelde 2023-11-21 10:43:58 +01:00
commit 1e6b41660c
No known key found for this signature in database
GPG key ID: C3336907360768E1

View file

@ -4,7 +4,7 @@ OUTPUTDIR = $(BASEDIR)/_build
TOOLSDIR = $(BASEDIR)/tools
JSDIR = "$(BASEDIR)/../platform/web"
LANGARG ?= en
LANGCMD = -l $(LANGARG)
TOOLSOPT ?=
.ONESHELL:
@ -19,7 +19,10 @@ doxygen:
rst:
rm -rf "$(OUTPUTDIR)/rst"
mkdir -p "$(OUTPUTDIR)/rst"
python3 "$(TOOLSDIR)/make_rst.py" -o "$(OUTPUTDIR)/rst" "$(LANGCMD)" $(CLASSES)
python3 "$(TOOLSDIR)/make_rst.py" -o "$(OUTPUTDIR)/rst" -l "$(LANGARG)" $(TOOLSOPT) $(CLASSES)
xml-check:
python3 "$(TOOLSDIR)/make_rst.py" --dry-run -l "$(LANGARG)" $(TOOLSOPT) $(CLASSES)
rstjs:
rm -rf "$(OUTPUTDIR)/rstjs"