【发布时间】:2019-05-14 15:55:32
【问题描述】:
我目前正在处理一个项目,该项目特别要求我不要使用 Makefile 来构建所有依赖项,因为他们的整个 repo 使用 bazel 来构建文件。我对 MakeFile 的了解为零。我想知道如何将以下 Makefile 转换为命令行参数,然后我可以将其放入简单的 Python 脚本中。先感谢您!非常感谢您的解决方案!
# Minimal makefile for Sphinx documentation
#
# You can set these variables from the command line.
SPHINXOPTS =
SPHINXBUILD = sphinx-build
SOURCEDIR = .
BUILDDIR = _build
# Put it first so that "make" without argument is like "make help".
help:
@$(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)
【问题讨论】:
标签: python-3.x makefile terminal python-sphinx bazel