changeset 5658:398a3f0ca07a stable

packaging: use automatic variables for running test2rst.py This script can take either file or directory path. It makes sense to only run the script for the specific file that make tries to build and not the whole tutorials/ directory.
author Anton Shestakov <av6@dwimlabs.net>
date Mon, 09 Nov 2020 22:37:05 +0800
parents 6e37ce7be367
children 5ea837c515d9
files docs/makefile
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/docs/makefile	Mon Nov 09 23:03:31 2020 +0800
+++ b/docs/makefile	Mon Nov 09 22:37:05 2020 +0800
@@ -5,10 +5,10 @@
 	$(SPHINXBUILD) . ../html/
 
 tutorials/tutorial.rst: tutorials/tutorial.t test2rst.py
-	python test2rst.py tutorials/
+	python test2rst.py $<
 
 tutorials/topic-tutorial.rst: tutorials/topic-tutorial.t test2rst.py
-	python test2rst.py tutorials/
+	python test2rst.py $<
 
 static/logo-evolve.ico: static/logo-evolve.svg
 	convert -resize 36x36 $< $@