godot/doc/Makefile

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

29 lines
673 B
Makefile
Raw Normal View History

BASEDIR = .
2023-02-27 11:24:46 +00:00
CLASSES = "$(BASEDIR)/classes/" "$(BASEDIR)/../modules/"
OUTPUTDIR = $(BASEDIR)/_build
TOOLSDIR = $(BASEDIR)/tools
2023-02-27 11:24:46 +00:00
JSDIR = "$(BASEDIR)/../platform/web"
LANGARG ?= en
LANGCMD = -l $(LANGARG)
.ONESHELL:
clean:
2023-02-27 11:24:46 +00:00
rm -rf "$(OUTPUTDIR)"
doxygen:
2023-02-27 11:24:46 +00:00
rm -rf "$(OUTPUTDIR)/doxygen"
mkdir -p "$(OUTPUTDIR)/doxygen"
doxygen Doxyfile
rst:
2023-02-27 11:24:46 +00:00
rm -rf "$(OUTPUTDIR)/rst"
mkdir -p "$(OUTPUTDIR)/rst"
python3 "$(TOOLSDIR)/make_rst.py" -o "$(OUTPUTDIR)/rst" "$(LANGCMD)" $(CLASSES)
rstjs:
2023-02-27 11:24:46 +00:00
rm -rf "$(OUTPUTDIR)/rstjs"
mkdir -p "$(OUTPUTDIR)/rstjs"
npm --prefix "$(JSDIR)" ci
npm --prefix "$(JSDIR)" run docs -- --destination "$(OUTPUTDIR)/rstjs/html5_shell_classref.rst"