2022-09-11 15:48:31 +08:00
|
|
|
BASEDIR = .
|
2017-09-22 22:55:48 +08:00
|
|
|
CLASSES = $(BASEDIR)/classes/ $(BASEDIR)/../modules/
|
2015-12-13 07:01:04 +08:00
|
|
|
OUTPUTDIR = $(BASEDIR)/_build
|
|
|
|
TOOLSDIR = $(BASEDIR)/tools
|
2022-08-29 02:27:45 +08:00
|
|
|
JSDIR = $(BASEDIR)/../platform/web
|
2021-12-21 17:53:07 +08:00
|
|
|
LANGARG ?= en
|
|
|
|
LANGCMD = -l $(LANGARG)
|
2015-12-13 07:01:04 +08:00
|
|
|
|
|
|
|
.ONESHELL:
|
|
|
|
|
|
|
|
clean:
|
|
|
|
rm -rf $(OUTPUTDIR)
|
|
|
|
|
|
|
|
doxygen:
|
|
|
|
rm -rf $(OUTPUTDIR)/doxygen
|
|
|
|
mkdir -p $(OUTPUTDIR)/doxygen
|
|
|
|
doxygen Doxyfile
|
|
|
|
|
|
|
|
rst:
|
|
|
|
rm -rf $(OUTPUTDIR)/rst
|
|
|
|
mkdir -p $(OUTPUTDIR)/rst
|
2021-12-21 17:53:07 +08:00
|
|
|
python3 $(TOOLSDIR)/make_rst.py -o $(OUTPUTDIR)/rst $(LANGCMD) $(CLASSES)
|
2021-02-22 13:10:16 +08:00
|
|
|
|
|
|
|
rstjs:
|
|
|
|
rm -rf $(OUTPUTDIR)/rstjs
|
|
|
|
mkdir -p $(OUTPUTDIR)/rstjs
|
|
|
|
npm --prefix $(JSDIR) ci
|
|
|
|
npm --prefix $(JSDIR) run docs -- --destination $(OUTPUTDIR)/rstjs/html5_shell_classref.rst
|