summaryrefslogtreecommitdiff
path: root/tests/gold/html/Makefile
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-10-13 10:56:26 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-10-13 12:11:49 -0400
commitf1505afb5212b8291dffe607e6cdfa565fceb359 (patch)
treead514fda9f3cb00f1859ed1742efaf04991c13c6 /tests/gold/html/Makefile
parent54d8366cc755ebabdd15b6418f209e7339321847 (diff)
downloadpython-coveragepy-git-f1505afb5212b8291dffe607e6cdfa565fceb359.tar.gz
Save copies of support files so we can view gold files properly
Diffstat (limited to 'tests/gold/html/Makefile')
-rw-r--r--tests/gold/html/Makefile21
1 files changed, 21 insertions, 0 deletions
diff --git a/tests/gold/html/Makefile b/tests/gold/html/Makefile
new file mode 100644
index 00000000..ef870fc9
--- /dev/null
+++ b/tests/gold/html/Makefile
@@ -0,0 +1,21 @@
+# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
+# For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt
+
+help:
+ @echo "Available targets:"
+ @grep '^[a-zA-Z]' $(MAKEFILE_LIST) | sort | awk -F ':.*?## ' 'NF==2 {printf "\033[36m %-25s\033[0m %s\n", $$1, $$2}'
+
+complete: ## Copy support files into directories so the HTML can be viewed properly.
+ @for sub in *; do \
+ if [[ -f $$sub/index.html ]]; then \
+ echo Copying into $$sub ; \
+ cp -n support/* $$sub ; \
+ fi ; \
+ done ; \
+ true # because the for loop exits with 1 for some reason.
+
+clean: ## Remove the effects of this Makefile.
+ git clean -fq .
+
+update-support: ## Copy latest support files here for posterity.
+ cp ../../../coverage/htmlfiles/*.{css,js,png} support