diff options
| author | 2025-10-06 01:21:05 +0800 | |
|---|---|---|
| committer | 2025-10-06 01:21:05 +0800 | |
| commit | c79ded44babda43d13fdc9ccd5b45aa397fa1a1a (patch) | |
| tree | 7745882a0b82defbba71ec2b6bdfd4a987bee266 /docs/Makefile | |
| parent | 4abce3ad753d5a54ee57da588313bc4486a141ec (diff) | |
| download | OneRoll-c79ded44babda43d13fdc9ccd5b45aa397fa1a1a.tar.gz OneRoll-c79ded44babda43d13fdc9ccd5b45aa397fa1a1a.zip | |
feat: update Makefile to use ppm for Sphinx commands
Diffstat (limited to 'docs/Makefile')
| -rw-r--r-- | docs/Makefile | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/docs/Makefile b/docs/Makefile index bdf65e8..59b5b2c 100644 --- a/docs/Makefile +++ b/docs/Makefile @@ -9,22 +9,23 @@ SOURCEDIR = source BUILDDIR = _build SPHINXINTL ?= sphinx-intl lang ?= zh_CN +ppm ?= uv # Put it first so that "make" without argument is like "make help". help: - @$(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + @$(ppm) run $(SPHINXBUILD) -M help "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) .PHONY: help Makefile # Catch-all target: route all unknown targets to Sphinx using the new # "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS). %: Makefile - @$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) + @$(ppm) run $(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O) # update translation command translate: - @$(SPHINXINTL) update -p ./build/gettext -l $(lang) $(O) + @$(ppm) run $(SPHINXINTL) update -p ./build/gettext -l $(lang) $(O) # build for debug dev: - sphinx-autobuild source _build/html
\ No newline at end of file + @$(ppm) run sphinx-autobuild source _build/html
\ No newline at end of file |
