summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2020-07-24 22:08:29 -0400
committerNed Batchelder <ned@nedbatchelder.com>2020-07-24 22:08:29 -0400
commit348aa47798d5d315c11d568eb87165b857d547e6 (patch)
tree7b433ee26291b6ecbc52327f665937147c89aa10 /Makefile
parent5a30c8d82aa942ce882fda8dbf16f5ec6f9608c4 (diff)
downloadpython-coveragepy-git-348aa47798d5d315c11d568eb87165b857d547e6.tar.gz
Help in docs didn't work with tmp
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile11
1 files changed, 5 insertions, 6 deletions
diff --git a/Makefile b/Makefile
index 0c65bb52..780424af 100644
--- a/Makefile
+++ b/Makefile
@@ -138,18 +138,17 @@ $(DOCBIN):
tox -q -e doc --notest
cmd_help: $(DOCBIN)
- mkdir -p tmp
for cmd in annotate combine debug erase html json report run xml; do \
- echo > tmp/$$cmd.rst; \
- echo ".. code::" >> tmp/$$cmd.rst; \
- echo >> tmp/$$cmd.rst; \
- echo " $$ coverage $$cmd --help" >> tmp/$$cmd.rst; \
+ echo > doc/help/$$cmd.rst; \
+ echo ".. code::" >> doc/help/$$cmd.rst; \
+ echo >> doc/help/$$cmd.rst; \
+ echo " $$ coverage $$cmd --help" >> doc/help/$$cmd.rst; \
$(DOCBIN)/python -m coverage $$cmd --help | \
sed \
-e 's/__main__.py/coverage/' \
-e '/^Full doc/d' \
-e 's/^/ /' \
- >> tmp/$$cmd.rst; \
+ >> doc/help/$$cmd.rst; \
done
dochtml: $(DOCBIN) cmd_help ## Build the docs HTML output.