Skip to content

Commit cec2dd6

Browse files
committed
doc/en/Makefile: allow passing in REGENDOC_FILES
This allows for: > make -C doc/en regen REGENDOC_FILES=example/parametrize.rst
1 parent 266bf2c commit cec2dd6

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

doc/en/Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,8 +39,9 @@ help:
3939
clean:
4040
-rm -rf $(BUILDDIR)/*
4141

42+
regen: REGENDOC_FILES:=*.rst */*.rst
4243
regen:
43-
PYTHONDONTWRITEBYTECODE=1 PYTEST_ADDOPTS=-pno:hypothesis COLUMNS=76 regendoc --update *.rst */*.rst ${REGENDOC_ARGS}
44+
PYTHONDONTWRITEBYTECODE=1 PYTEST_ADDOPTS=-pno:hypothesis COLUMNS=76 regendoc --update ${REGENDOC_FILES} ${REGENDOC_ARGS}
4445

4546
html:
4647
$(SPHINXBUILD) -b html $(ALLSPHINXOPTS) $(BUILDDIR)/html

0 commit comments

Comments
 (0)