summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorkobewi <kobewi4e@gmail.com>2023-02-27 12:24:46 +0100
committerYuri Sizov <yuris@humnom.net>2023-03-13 14:29:23 +0100
commit4bd16e649393021137b8f2145e42436a182c373b (patch)
tree6a7205f318c0ec0f13bbdcb1ece2cd369fdedcdc /doc
parented139593bf5045c696879be771c29732080cb632 (diff)
Safeguard Makefile commands
(cherry picked from commit d29030fdd082632b7b004bdc52826b3d8e2759f0)
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile24
1 files changed, 12 insertions, 12 deletions
diff --git a/doc/Makefile b/doc/Makefile
index c8bf32d6e2..cc2ebf9881 100644
--- a/doc/Makefile
+++ b/doc/Makefile
@@ -1,28 +1,28 @@
BASEDIR = .
-CLASSES = $(BASEDIR)/classes/ $(BASEDIR)/../modules/
+CLASSES = "$(BASEDIR)/classes/" "$(BASEDIR)/../modules/"
OUTPUTDIR = $(BASEDIR)/_build
TOOLSDIR = $(BASEDIR)/tools
-JSDIR = $(BASEDIR)/../platform/web
+JSDIR = "$(BASEDIR)/../platform/web"
LANGARG ?= en
LANGCMD = -l $(LANGARG)
.ONESHELL:
clean:
- rm -rf $(OUTPUTDIR)
+ rm -rf "$(OUTPUTDIR)"
doxygen:
- rm -rf $(OUTPUTDIR)/doxygen
- mkdir -p $(OUTPUTDIR)/doxygen
+ rm -rf "$(OUTPUTDIR)/doxygen"
+ mkdir -p "$(OUTPUTDIR)/doxygen"
doxygen Doxyfile
rst:
- rm -rf $(OUTPUTDIR)/rst
- mkdir -p $(OUTPUTDIR)/rst
- python3 $(TOOLSDIR)/make_rst.py -o $(OUTPUTDIR)/rst $(LANGCMD) $(CLASSES)
+ rm -rf "$(OUTPUTDIR)/rst"
+ mkdir -p "$(OUTPUTDIR)/rst"
+ python3 "$(TOOLSDIR)/make_rst.py" -o "$(OUTPUTDIR)/rst" "$(LANGCMD)" $(CLASSES)
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
+ rm -rf "$(OUTPUTDIR)/rstjs"
+ mkdir -p "$(OUTPUTDIR)/rstjs"
+ npm --prefix "$(JSDIR)" ci
+ npm --prefix "$(JSDIR)" run docs -- --destination "$(OUTPUTDIR)/rstjs/html5_shell_classref.rst"