Merge pull request #74042 from KoBeWi/rm_-rf_System32

Safeguard Makefile commands
This commit is contained in:
Rémi Verschelde 2023-03-03 11:04:32 +01:00
commit 9ab74fee3b
No known key found for this signature in database
GPG Key ID: C3336907360768E1

View File

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