Skip to content

Commit

Permalink
makefile: pass file to build through "file" variable
Browse files Browse the repository at this point in the history
E.g.
make fast file=src/contrib/architecture.rst
  • Loading branch information
pbrezina committed Oct 12, 2021
1 parent 0745194 commit 90d8a09
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ SOURCEDIR = src
BUILDDIR = _build

html: Makefile
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) -v
@$(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(file) -v

fast: Makefile
@FASTBUILD="yes" $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) -v
@FASTBUILD="yes" $(SPHINXBUILD) -M html "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(file) -v

clean: Makefile
@$(SPHINXBUILD) -M clean "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS)
Expand Down

0 comments on commit 90d8a09

Please sign in to comment.